通过Zip查找城市和州Google Geocode Api [英] Lookup City and State by Zip 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屋!