In android I can easily get onLocationChanged to work and gets the mobile latitude and longitude.
However once I got these coordinates How can I get the address of the mobile e.g
XYWZ Road, GRDSASDF Sector 823432, Australia etc
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Geocoder is a class for handling Geocoding and Reverse Geocoding.
description of a location into a (latitude, longitude) coordinate.
longitude) coordinate into a (partial) address.
The amount of detail in a reverse geocoded location description may vary, for example one might contain the full street address of the closest building, while another might contain only a city name and postal code. The Geocoder class requires a backend service that is not included in the core android framework. The Geocoder query methods will return an empty list if there no backend service in the platform. Use the
isPresent()method to determine whether a Geocoder implementation exists.The
getFromLocation(double latitude, double longitude, int maxResults)method returns an array of Addresses that are known to describe the area immediately surrounding the given latitude and longitude. The returned addresses will be localized for the locale provided to this class’s constructor.The returned values may be obtained by means of a network lookup. The results are a best guess and are not guaranteed to be meaningful or correct. It may be useful to call this method from a thread separate from your primary UI thread.
Here a Tutorial to get familiar with the Geocoder: