草庐IT

textsearch

全部标签

android - 是否可以使用 google places textsearch api 从纬度和经度获取格式化地址?

我想在点击map图钉时显示格式化地址。Google的textseachapi提供关键的formatted_address。我如何使用该特定地点的特定经纬度获取formatted_address?是否可以使用googleplacestextsearchapi从纬度和经度获取格式化地址? 最佳答案 您需要GoogleMapsGeocodingAPI获取地址。示例:https://maps.googleapis.com/maps/api/geocode/json?latlng=19.1309601,72.9068758&key=您的key