开发者

Convert coordinates to a place name

开发者 https://www.devze.com 2023-01-15 07:34 出处:网络
I am using the HTML5 Geolocation API to find the longitude and the latitude开发者_C百科 from the users of my site. This works, but now I would like to show on the screen \"You currently are in ...\".

I am using the HTML5 Geolocation API to find the longitude and the latitude开发者_C百科 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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消