【问题标题】:google map api is not able to find zipcode 22222谷歌地图 api 无法找到邮政编码 22222
【发布时间】:2016-01-19 07:48:02
【问题描述】:

我看到邮政编码 22222 是美国弗吉尼亚州阿灵顿的邮政编码,但是当从 Google Map api 搜索时,它没有显示国家名称美国

http://maps.googleapis.com/maps/api/geocode/json?address=22222

请让我知道我在这里做错了什么?

我试过http://maps.google.com/maps/api/geocode/json?components=country:US|postal_code:22222&sensor=false 这没有给出结果,这意味着美国没有 zipcode=22222 但在互联网上 22222 属于美国弗吉尼亚州

【问题讨论】:

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


【解决方案1】:

使用 zip_code 而不是 postal_code 我认为这会返回正确的。

http://maps.google.com/maps/api/geocode/json?components=country:US|zip_code:22222

【讨论】:

  • 谢谢,但我不认为 zip_code 是一个有效的参数。当您删除 zip_code 或写任何东西代替 zip_code 时,响应将是相同的。其次,使用 zip_code 它应该给我州名?
  • 那么我会使用 (maps.google.com/maps/api/geocode/…) 并向谷歌地图提交错误报告。还有这个 (goo.gl/dFJ8i2)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-01-25
  • 1970-01-01
  • 2014-01-24
  • 1970-01-01
相关资源
最近更新 更多