Google Maps API返回零结果,而Google Maps UI给出了正确的返回

发布于 2025-02-05 10:58:27 字数 547 浏览 1 评论 0原文

不确定如何进行此操作,但是我在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

庆幸我还是我 2025-02-12 10:58:27

我最终创建了一个错误票在地理编码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)!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文