简体   繁体   English

如何从纬度和经度从Google Map API获取地址?

[英]how to get an address from google map api from lat and lon?

I get the lat and lon based on user location. 我根据用户位置获得经纬度。 how can I get the address by lat and lon utilizing google map api? 如何使用Google Map API通过经纬度获得地址?

and show it on client side 并在客户端显示

You need to use Google's Geocoding API to get the address by reverse geocoding. 您需要使用Google的地址解析API通过反向地址解析来获取地址。 There are several examples in the Samples section of the Google Maps Documentation. Google地图文档的“ 示例”部分提供了一些示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM