I am using the HTML5 Geolocation API to find the longitude and the latitude from the users of my site. This works, but now I would like to show on the screen "You currently are in ...". So I need to convert these coordinates I get from the Geolocation API to a place name.
I tried a bit with Google Maps API, but I didn't get it working.
Does anyone knows how to do this?
1. Go to maps.google.com. 2. Type out the coordinates into the search bar — using either the degrees, minutes, and seconds (DMS) format, the degrees and decimal minutes (DMM) format, or decimal degrees (DD) format — then hit enter or click on the search icon.
You can use a reverse geocoding tool or Google Maps to pull up the address listed at your given coordinates. Just be sure that you enter your coordinates accurately and include the minutes and seconds listed after each degree for precise results.
The Google Maps API Docs have what seems to be a complete reverse geocoding example. (Note that this is the new V3 API!)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With