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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 19:21:07  来源:igfitidea点击:

Up to Date - Zip Code Database?

mysqlsqldatabasezipcode

提问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:

https://www.usps.com/business/web-tools-apis/welcome.htm

https://www.usps.com/business/web-tools-apis/welcome.htm

回答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.

人口普查局没有所有邮政编码的原因是因为它们只包含有人口的邮政编码(一般送货地址),不包含邮政信箱的邮政编码。

回答by Randy Minder

I get mine zip codes, and more, from here. This also includes latitude and longitude information, which makes calculating distances between locations possible.

我可以从这里获取我的邮政编码以及更多信息。这还包括纬度和经度信息,这使得计算位置之间的距离成为可能。