最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Convert coordinates to a place name - Stack Overflow

programmeradmin8浏览0评论

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?

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?

Share Improve this question edited Dec 7, 2018 at 16:41 nbro 15.8k34 gold badges119 silver badges213 bronze badges asked Sep 4, 2010 at 11:06 VinzcentVinzcent 1,4486 gold badges33 silver badges59 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 16

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

发布评论

评论列表(0)

  1. 暂无评论