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

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

问题描述

我基本上想检索邮政编码中的城市和州列表.Google 的 Geocode API 是否能够这样做?我试过查看文档,但发现信息太多了.

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.

谢谢

我能够通过以下方式检索城市和州:http://maps.google.com/maps/geo?output=xml&q=14606 但是否有限制?

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?

推荐答案

使用 地理编码 API

例如,要查找 zip 77379,请使用如下请求:

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

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

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

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