MySQL 最新 - 邮政编码数据库?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19819418/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Up to Date - Zip Code Database?
提问by A.O.
I've been using the zipcode information from here:
我一直在使用这里的邮政编码信息:
http://www.census.gov/geo/maps-data/data/gazetteer2010.html
http://www.census.gov/geo/maps-data/data/gazetteer2010.html
in my mySQL database but I've noticed that it's missing quite a few zipcodes
在我的 mySQL 数据库中,但我注意到它缺少很多邮政编码
(ex. 94142, San Francisco, CA)
(例如 94142,加利福尼亚州旧金山)
....does anyone know of some more up to date zip code data?
....有人知道更多最新的邮政编码数据吗?
回答by Krishna Gupta
Try the data at http://www.geonames.org/
试试http://www.geonames.org/ 上的数据
(There's a Free postal Code Data link there, with postal codes for lots of countries).
(那里有一个免费的邮政编码数据链接,其中包含许多国家/地区的邮政编码)。
回答by JakeRobb
The United States Postal Service is the government entity that provisions ZIP codes. As such, the authoritative, always-correct database is theirs.
美国邮政局是提供邮政编码的政府实体。因此,权威的、永远正确的数据库是他们的。
Happily, they provide free APIs that developers can use:
令人高兴的是,他们提供了开发人员可以使用的免费 API:
回答by user1473461
The reason why the Census Bureau doesn't have all ZIP Codes is because they only contain the ones with populations (general delivery addresses) and don't contain ZIPs for PO Boxes.
人口普查局没有所有邮政编码的原因是因为它们只包含有人口的邮政编码(一般送货地址),不包含邮政信箱的邮政编码。