【问题标题】:Google Map geocoding is not validating the correct address谷歌地图地理编码未验证正确的地址
【发布时间】:2017-04-24 11:06:45
【问题描述】:

我有正确的地址 700 湾路 红木城 加利福尼亚州 94063 美国

但谷歌地图地理编码没有返回此地址的结果,我使用的是 url(仅在此处删除了 api 密钥): https://maps.googleapis.com/maps/api/geocode/json?components=postal_code:94063|locality:Redwood%20City|administrative_area:CA

但是当我删除了位置时,即使位置与以下请求的响应相同,它也可以正常工作 https://maps.googleapis.com/maps/api/geocode/json?components=postal_code:94063|administrative_area:CA

有人可以帮忙吗?

【问题讨论】:

标签: json google-maps google-maps-api-3 google-geocoding-api


【解决方案1】:

最近,谷歌发布了新版Geocoding API:

https://googlegeodevelopers.blogspot.com.es/2016/11/address-geocoding-in-google-maps-apis.html

这个版本现在是默认的。看起来您的查询在新的地理编码器中被破坏了,但在旧版本中可以正常工作:

https://maps.googleapis.com/maps/api/geocode/json?components=postal_code:94063|locality:Redwood%20City|administrative_area:CA&new_forward_geocoder=false&key=YOUR_API_KEY

我建议在public issue tracker 中报告该问题。

希望对你有帮助!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-12-17
    • 2014-12-17
    • 1970-01-01
    • 2016-03-13
    • 2016-07-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多