Adding Location Nasrullah. Adding Location Adding a Map Activity Obtaining a Map API Debug Key Adding a Map View Finding an Address with Google’s GeoCoder.

Slides:



Advertisements
Similar presentations
Scatter Plots or Line of Best Fit Clipboard B Objective:To use scatter plots to write a line of best fit. Right click and click advance to advance slides!!
Advertisements

Bruce Scharlau, University of Aberdeen, 2010 Android and Location Mobile Computing Unless otherwise stated, images are from android sdk.
VIP Smartphone Team – Ahmad, Din, Vinayak Car Locator App Fall 2010 VIP Smartphone Team Ahmad, Din, Vinayak.
Touchdevelop api api: location & maps show geo locations Disclaimer: This document is provided “as-is”. Information and views expressed in this document,
Introducing to Location in Android LOCATION IS EVERYTHING Kamil Lelonek Kamil Lelonek
Location based services
Prepared by: Prepared by: Jameela Rabaya Jameela Rabaya Fatima Darawsha Fatima Darawsha.
CS378 - Mobile Computing Maps. Using Google Maps Like other web services requires an API key from Google ons/google-apis/mapkey.html.
Chapter 11: Discover! Incorporating Google Maps
Google Android Map API Presentation 13/03/2008. Map API – Overview (1) Map rendering facility on Android device Similar to Google Earth Integrate map.
Location & Maps.  Mobile applications can benefit from being location-aware, e.g.,  Routing from a current to a desired location  Searching for stores.
Systems for locating points on Earth 1. Latitude and Longitude
MAPPING TEAM 2 Sara DuPont & Taylor Graves CSCI 110 Web-Based Services Project 4/18/08 vs.
Latitude longitude review
GPS to GIS: Collecting and Mapping Real-World Data Collect GPS data around your school, and import it into ArcView to create shapefiles and grids.
Location and Maps Content Getting Location Getting Google Map In application Test on Emulator/Device.
Using GPS in Algebra I One activity that interests and engages students in mathematics.
Degrees Minutes & Seconds 360 ° in a circle 1° = 1/360 of a circle 1’ = 1/60 of one degree 1” = 1/60 of one minute 1° = 60 minutes or 3600 seconds.
Latitude / Longitude Lat/lon practice map. The Equator and Parallels of Latitude.
CS378 - Mobile Computing Maps. Using Google Maps Content on using Google Maps inside your app Alternatives: Open Street Maps –
Map Applications.
Route Tracker App Android How to Program © by Pearson Education, Inc. All Rights Reserved.
Ch2 Sec3 Maps and Computers.
Exploring Map Layers in Google Earth Georeferencing Images.
Location based services Using Google Maps v2 etc. in Android apps 1Location based services.
Android, where is my car? Summary. This is the just the summary of topic after it was taught in the lecture class. The LocationSensor component can report.
How to Create Shapefiles For NiJel Using QGIS: Before you start creating shapefiles make sure you have OpenOffice install, QGIS, and File Transfer Protocol.
Social network Twitter Hashtag: #m2eu #android Personal Israel Ferrer –
Location based services
CSS216 MOBILE PROGRAMMING Android, Chapter 8 Book: “Professional Android™ 2 Application Development” by Reto Meier, 2010 by: Andrey Bogdanchikov (
INTRODUCTION TO HTML5 Geolocation. Display a Specific Location with Google Maps  You can use the Google Maps API to display a custom map on your own.
Computer Vocabulary Acceptable Use Policy conduct expected from someone using a computer.
Java Data Types. Primitive Data Types Java has 8 primitive data types: – char: used to store a single character eg. G – boolean: used to store true or.
Working with Map Projections Margaret M. Maher Author of “Lining Up Data in ArcGIS: a guide to map projections” Second edition.
Context Aware Location Nasrullah. Location Basics LocationManager—Class providing access to Android system location services LocationListener—Interface.
Interactive (Google) Maps Google has available APIs for building “Interactive Map” web pages Google has available APIs for building “Interactive Map” web.
MAKANI ANDROID APPLICATION Prepared by: Asma’ Hamayel Alaa Shaheen.
Maps Dr. David Janzen Except as otherwise noted, the content of this presentation is licensed under the Creative Commons Attribution 2.5 License.
Hurricane Investigation. Where Do Hurricanes Form? Purpose: Purpose: To determine the best location for scientific instruments designed to detect hurricanes.
Android - Location Based Services. Google Play services facilitates adding location awareness to your app with automated location tracking Geo fencing.
Hashed Files Text Versus Binary Meghan Cavanagh. Hashed Files a file that is searched using one of the hashing methods User gives the key, the function.
Latitude & Longitude Practice
Cosc 4735 LocationAware API. Previous on … Before we looked at GPS location. – d-gpslocation.pptx
Google Map API The Google Maps API lets you embed Google Maps in your own web pages with JavaScript The API provides a number of utilities for manipulating.
Air Traffic Simulation Sam Eberspacher. What is it? Simulation of air traffic over the United States Uses a sample of 51 major airports to simulate Uses.
Location based services 1. Some location-based services available in Android Geo-coding – Address -> location Reverse geo-coding – Location -> address(es)
Esri UC 2014 | Demo Theater | Working with Map Projections Margaret M. Maher Author of “Lining Up Data in ArcGIS: a guide to map projections” Second edition.
CS371m - Mobile Computing Maps. Using Google Maps Content on using Google Maps inside your app Alternatives Exist: – Open Street Maps –
Geocoding Chapter 16 GISV431 &GEN405 Dr W Britz. Georeferencing, Transformations and Geocoding Georeferencing is the aligning of geographic data to a.
3 rd -party APIs Kalin Kadiev Astea Solutions AD.
Grow fast with Location Intelligence. What is Location Intelligence? Location Intelligence is more than a map.
Location-Based Services. Objectives How to display Google Maps in your application How to control displayed maps How to perform geocoding and reverse.
CS499 – Mobile Application Development Fall 2013 Location & Maps.
A Look at Creating & Updating Point Files
Android Application Maps 1.
Tracking device movements
AnDroid GoogleMaps API
Sensors, maps and fragments:
Global Positioning System
CS371m - Mobile Computing Maps.
Latitude and Longitude
Iteration 1 Presentation
Maps My favorite topic .
Family Location Presentation
Name of Famous Explorer
Equations with Fractions
Equations with Fractions
Objective - To multiply decimals.
Latitude & Longitude Practice
Python Creating a calculator.
Presentation transcript:

Adding Location Nasrullah

Adding Location Adding a Map Activity Obtaining a Map API Debug Key Adding a Map View Finding an Address with Google’s GeoCoder Returning the choosen from the map Activity.

Task Manager I.Find an Address II.Choose the Address to add a Task

Cast of Characters MapView- A Google Map,just like the official Maps Application MapActivity- An Activity that knows how to display the MapView GeoCoder- a class that can search for a location,returning an address with latitude and longitude.

Step one- Adding a Location

Add Location Steps

Step 2Map View On the Screen

Obtaining a Google API key To use Google Map’s API you need an API key One Production key and many debug keys – One debug key for every developer machine – ion/android/mapkey ion/android/mapkey

My Debug key

Step 2- Map View Steps You also requried INTERNET Permission for that app

Step 3-Finding an Address

Geocoder Returns List getFromLocation-search for addresses near longitude and latitude getFromLocationName-search for a location by name getFromLocationName-search for a location within a “geofence” –a box defined by longitude and latitude

Finding and Displaying an Address Steps

Step 4 Returning the address to the AddTaskActivity

Step 4 –Returning an address

Returning an Address Steps

Longitude*1E6 The reason they are multiplied by 1E6 is because the GeoPoint class (which is used to plot points on a Google Map) uses microdegree latitude and longitude as integers. Multiplying by 1E6 converts degrees into microdegrees. The reason Google chose to do it this way is up to debate, but it probably has to do with the fact that the Google Maps themselves are not extremely accurate, and using a raw double value to 10 or more decimal places returned by the GPS is an unnecessary level of accuracy to plot a point on a Google Map. SOURCE google-maps-longitude-latitude-calculation-question google-maps-longitude-latitude-calculation-question

GeoPoint 1)First you have data(Location) in degree formate. 2)By the Equation you have to multiply it by )now,you have particular GEO POINT Location. if you have location like : Latitude: and Longitude: ° So, your GeoPoint( , ); float lat = f; float lng = f; GeoPoint gp = new GeoPoint((int)(lat * 1E6), (int)(lng * 1E6));

What we did? Added a map Activity Got a Debug key Added a MapView Used GeoCoder to find an Address Displayed the address returned from the map activity.