Presentation is loading. Please wait.

Presentation is loading. Please wait.

Location based services 1. Some location-based services available in Android Geo-coding – Address -> location Reverse geo-coding – Location -> address(es)

Similar presentations


Presentation on theme: "Location based services 1. Some location-based services available in Android Geo-coding – Address -> location Reverse geo-coding – Location -> address(es)"— Presentation transcript:

1 Location based services 1

2 Some location-based services available in Android Geo-coding – Address -> location Reverse geo-coding – Location -> address(es) Where am I? – Getting live location information through GPS, mobile phone cell tower triangulation, or Wi-Fi positioning Google maps – Showing and annotating maps 2Location based services

3 Geocoding Getting real addresses from a position GeoCoder – List getFromLocationName(name, howMany) Geocoding Address includes ordinary address + (lat, long) – List getFromLocation(lat, long, howMany) Reverse geocoding – Example: GeocodingExample – Calls Google back-end services Should be done using AsyncTask – Left as an exercise Location based services3

4 Where am I? Obtaining the device’ location LocationManager class Listen for changes in the location Example – LocationManagerExample Location based services4

5 Getting location data: Where am I? Some applications needs to know the current position of the user’s device. Three ways to obtain the position – GPS satellite Most accurate – Mobile phone cell tower triangulation Works indoors – Wi-Fi The address of the connected Wi-Fi should be known Least accurate AndroidManifest.xml – Location based services5

6 Google maps Google maps are NOT part of the Android API – It’s an add-on – This means that you will have to do a number of things to make it work … Including supplying your credit card number … Make an Intent and open the Map application on your device – Example: IntentsForBuildInApps 6Location based services

7 References and further readings Google Maps Android API v2 – https://developers.google.com/maps/documentation/android/ https://developers.google.com/maps/documentation/android/ Lars Vogel: Google Maps Android API v2 – Tutorial – http://www.vogella.com/articles/AndroidGoogleMaps/article.ht ml http://www.vogella.com/articles/AndroidGoogleMaps/article.ht ml George Mathew: Remove a single marker from Google Maps Android API V2 … – http://www.vogella.com/articles/AndroidGoogleMaps/article.ht ml http://www.vogella.com/articles/AndroidGoogleMaps/article.ht ml Making your app location-aware – http://developer.android.com/training/location/index.html http://developer.android.com/training/location/index.html Location based services7


Download ppt "Location based services 1. Some location-based services available in Android Geo-coding – Address -> location Reverse geo-coding – Location -> address(es)"

Similar presentations


Ads by Google