Google Maps API返回零结果,而Google Maps UI给出了正确的返回
不确定如何进行此操作,但是我在Google Maps API与Google Maps UI之间获得了不同的结果。
$ curl -s -X GET 'https://maps.googleapis.com/maps/api/geocode/json?address=Saint+George+AU&key=API_KEY'
# Got zero result (I should expect at least one result in here)
curl -s -X GET 'https://maps.googleapis.com/maps/api/geocode/json?address=Saint+Georges+AU&key=API_KEY' | jq .results[].formatted_address
"St Georges SA 5064, Australia"
"St George QLD 4487, Australia"
# Got two result
我想知道这是否是Google Maps API中的错误。
Not sure how to proceed on this, but I got different results between the Google Maps API vs Google Maps UI.
$ curl -s -X GET 'https://maps.googleapis.com/maps/api/geocode/json?address=Saint+George+AU&key=API_KEY'
# Got zero result (I should expect at least one result in here)
curl -s -X GET 'https://maps.googleapis.com/maps/api/geocode/json?address=Saint+Georges+AU&key=API_KEY' | jq .results[].formatted_address
"St Georges SA 5064, Australia"
"St George QLD 4487, Australia"
# Got two result
I wonder if this is a bug in the Google Maps API.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我最终创建了一个错误票在地理编码API问题Tracker中。当他们承认问题在他们身边时,他们关闭了我的要求,因为无法解决(不可行)!
I ended up creating a bug ticket in the Geocoding API issue tracker. While they admitted the issue was on their side, they closed my request as Won't Fix (Infeasible)!