通过Zip查找城市和州Google Geocode Api [英] Lookup City and State by Zip Google Geocode Api

查看:440
本文介绍了通过Zip查找城市和州Google Geocode Api的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我基本上想要在一个邮政编码中检索一个城市和州的列表。 Google的Geocode API是否可以这样做?我试图查看文档,但发现信息不堪重负。



任何帮助将不胜感激。如果还有其他方法可以完成这些任务,请告诉我们。



谢谢

编辑:我是能够通过以下方式检索城市和州: http://maps.google.com/maps/geo ?output = xml& q = 14606 ,但是有没有限制? 使用 GeoCoding API



例如,查找邮编77379使用这样的请求:



http://maps.googleapis.com/maps/api/geocode/json?address=77379&sensor=true


I basically want to retrieve a list of city and state within a zipcode. Is Google's Geocode API capable of doing so? I've tried looking into the documentation but found the information overwhelming.

Any help would be appreciated. If there is another method of accomplishing such task, please let me know.

Thanks

EDIT: I was able to retrieve the City and State through: http://maps.google.com/maps/geo?output=xml&q=14606 but is there a limitation against that?

解决方案

Use the GeoCoding API

For example, to lookup zip 77379 use a request like this:

http://maps.googleapis.com/maps/api/geocode/json?address=77379&sensor=true

这篇关于通过Zip查找城市和州Google Geocode Api的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆