如何从纬度和经度点获取城市名称? [英] How can I get city name from a latitude and longitude point?
本文介绍了如何从纬度和经度点获取城市名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法使用 javascript 的 google maps api 从纬度和经度点获取城市名称?
Is there a way to get a city name from a latitude and longitude point using the google maps api for javascript?
如果可以的话,我可以举个例子吗?
If so could I please see an example?
推荐答案
这叫做反向地理编码
来自 Google 的文档:
http://code.google.com/apis/maps/documentation/geocoding/#ReverseGeocoding.
调用 Google 地理编码网络服务的示例:
这篇关于如何从纬度和经度点获取城市名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文