Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert coordinates to a place name

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?

like image 944
Vinzcent Avatar asked Sep 04 '10 11:09

Vinzcent


People also ask

How do I convert XY coordinates to Google Maps?

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.

Can you get exact address with coordinates?

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.


1 Answers

The Google Maps API Docs have what seems to be a complete reverse geocoding example. (Note that this is the new V3 API!)

like image 108
Pekka Avatar answered Sep 17 '22 02:09

Pekka