小编Sre*_*nan的帖子

将邮政编码作为值传递给地址参数时,Google Maps API 地理编码不返回结果

在尝试按邮政编码 (2000) 搜索特定地址时,它不会正确返回预期的格式化地址,但在使用地址 (frederiksberg) 而不是邮政编码进行搜索时,它会正确返回预期的格式化地址。

https://maps.googleapis.com/maps/api/geocode/json?address=2000&components=country:Denmark&key=apikey

https://maps.googleapis.com/maps/api/geocode/json?address=frederiksberg&components=country:Denmark&key=apikey

但是对于地址设置为邮政编码(4000)的类似搜索,它会正确返回预期格式的地址,网址如下。

https://maps.googleapis.com/maps/api/geocode/json?address=4000&components=country:Denmark&key=apikey

请让我们知道为什么它不返回设置为 2000 的地址的预期格式地址。

蒂亚!

google-maps google-maps-api-3 geocode

6
推荐指数
2
解决办法
3187
查看次数

标签 统计

geocode ×1

google-maps ×1

google-maps-api-3 ×1