【问题标题】:Geocoding API (V3) unable to return correct results for some US postal codes地理编码 API (V3) 无法为某些美国邮政编码返回正确结果
【发布时间】:2013-08-14 11:06:22
【问题描述】:
  1. https://maps.googleapis.com/maps/api/geocode/json?components=postal_code:01133&sensor=false 预期 - 返回 country=US, "formatted_address" : "Springfield.."
    实际 - 返回 country=LT, "formatted_address" : "Vilnius 的结果01133, 立陶宛"

  2. https://maps.googleapis.com/maps/api/geocode/json?components=postal_code:07477&sensor=false 预期 - 返回 country=US, "formatted_address" : "Wayne, New Jersey.."的结果
    实际 - NO_RESULTS

需要做什么才能通过美国邮政编码查询并获得美国地址组件作为响应?

【问题讨论】:

  • 问题是……?
  • 问题是在通过美国邮政编码查询 google geo coder api 时还需要做什么才能获得美国的有效结果。
  • 好吧,你传入邮政编码 01133,然后你得到一个邮政编码 01133。在立陶宛,是的,但他们也有邮政编码 01133。谷歌没有水晶球,他们怎么会猜到你的意思是美国的邮政编码 01133?
  • 同意。至少响应可以包含所有匹配国家/地区的地址组件。一个用于 LT,另一个用于美国。事实并非如此。而且路过国家:美国元件过滤也不行。

标签: google-geocoding-api


【解决方案1】:
  1. 我希望维尔纽斯和圣保罗都有 01133(邮政编码不是唯一的)
  2. 是的,这是 Google 的问题,因为 07470 是新泽西州韦恩的“主要”邮政编码

在此处查看邮政编码:

http://www.geopostcodes.com/index.php

ad 1. 我发现的斯普林菲尔德(马萨诸塞州斯普林菲尔德)的类似邮政编码: 01101、01103-01105、01107-01109、01119、01128、01129、01151 - 不是 01133

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-10-17
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多