通过 Zip Google Geocode Api 查找城市和州

编程入门 行业动态 更新时间:2024-10-25 08:22:16
本文介绍了通过 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/maps/geo?output=xml&q=14606 但是否有限制?

I was able to retrieve the City and State through: http://maps.google/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/maps/api/geocode/json?address=77379&sensor=true&key=YOUR_GOOGLE_PLATFORM_API_KEY

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

更多推荐

[db:关键词]

本文发布于:2023-03-28 00:40:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/712549.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:城市   和州   Google   Zip   Api

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!