function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
pratap narwalpratap narwal 

Locate the current location with addrees.

Hi All,
Is it possible to get the address details using latitude and longitude?
I have a requirement to track the current location of the user and get that address.

I can get the curent latitude and longitude using Geolocation API but how can i get the addreess out of that.

Please suggest.

Thanks in advance
 
Dushyant SonwarDushyant Sonwar
Hi Pratap,
See this
http://stackoverflow.com/questions/3151450/google-geolocation-api-use-longitude-and-latitude-to-get-address
Or
send request to with latitude longitude parameters and get the xml as response
http://maps.google.com/maps/api/geocode/xml?latlng=40.714224,-73.961452&sensor=false
 
Dushyant SonwarDushyant Sonwar
You can also send request to this url
http://maps.google.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=false
and get response as json.