有什么方法可以在一个城市内获得所有邮编/邮政编码? [英] What are good ways to get all zipcodes/postal codes within a city?

查看:429
本文介绍了有什么方法可以在一个城市内获得所有邮编/邮政编码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在我知道使用 Geocomplete 我可以获得城市,州的邮政编码和其他信息。如何我可以得到一个城市内的所有邮政编码/邮政编码吗?就像​​这一个,我发现这里。我可以从geocomplete中获得它,还是应该从geoip数据库中查询它,例如 Maxmind

解决方案

我在这里工作boundaries-io.com
I认为这是你需要它使用美国人口普查作为存储库:美国邮政编码边界API:
https://www.mashape.com/vanitysoft/boundaries-io



以上API显示邮政编码,城市和州的美国边界(GeoJson)。
您应该以编程方式使用API​​来处理大型结果。

例如:
$ b


Now I know using Geocomplete I can get city,state postal codes and lot other info.How can I get all postal codes / zipcodes within a city.Like this one I found here.Can I get it from geocomplete or should I query it from a geoip database like Maxmind?

解决方案

i work here boundaries-io.com I think this is what you need it uses US Census as repository: US Zipcode Boundaries API: https://www.mashape.com/vanitysoft/boundaries-io

Above API shows US Boundaries(GeoJson) by zipcode,city, and state. you should use the API programatically to handle large results.

for example:

这篇关于有什么方法可以在一个城市内获得所有邮编/邮政编码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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