perl – 是否有CPAN模块列出美国邮政编码和州?

前端之家收集整理的这篇文章主要介绍了perl – 是否有CPAN模块列出美国邮政编码和州?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
基本上,我正在寻找一个可以告诉我的模块:

>处于给定状态的所有邮政编码
>给定的邮政编码是否处于给定状态
>给定邮政编码所属的州

我宁愿这是独立的,所以我不会拉一大堆依赖.

我基本上是在问这个因为我要用this file I found on the U.S. Census Bureau web site生成一个模块,如果已经存在合适的东西,我不想浪费时间.

我不打算用邮政编码查找城市名称,所以我不在乎,例如,Tiger文件认为14850仅适用于伊萨卡学院,但后来我也不知道该文件是否存在其他问题.

如果您不知道合适的CPAN模块,我也很感谢为这样的模块命名建议,以及更好的数据来源.

我有一种感觉USPS希望收取适当的清单,以及U.S. Census Bureau is not interested

In the past,the Census Bureau produced the 1990 Gazetteer ZIP Code file and a 1999 ZIP Code file. These files were produced as byproducts of Census Bureau internal operations. They were not developed as a formal product. However,the Census Bureau has made them available to the public “as is”. There will be no updated versions of these files.

解决方法

美国邮政服务确实允许访问 address information API.我不知道如何回应“将托管USPS Web工具的网站的网站地址(URL)是什么?”为了打包查找表的简单目的,我在这里提到它以防其他人发现它有用.

根据用户的目标,pe.usps.gov/text/LabelingLists/中的标签列表之一可能是合适的.看起来我将使用其中一个表作为减少要检查的案例数量的第一步.

最后,Twilio/Wigle.net Street Vector Data Set on Amazon AWS可能会提供您可能需要的所有详细信息,但我还没有检查您是否可以按州列出邮政编码.

猜你在找的Perl相关文章