>处于给定状态的所有邮政编码
>给定的邮政编码是否处于给定状态
>给定邮政编码所属的州
我宁愿这是独立的,所以我不会拉一大堆依赖.
我基本上是在问这个因为我要用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.
解决方法
根据用户的目标,pe.usps.gov/text/LabelingLists/中的标签列表之一可能是合适的.看起来我将使用其中一个表作为减少要检查的案例数量的第一步.
最后,Twilio/Wigle.net Street Vector Data Set on Amazon AWS可能会提供您可能需要的所有详细信息,但我还没有检查您是否可以按州列出邮政编码.