TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Database of cities

1 点作者 paradox95超过 14 年前
I need to be able to validate a user's location. For this I was hoping there was a database of cities I could use. I don't mind paying for it.<p>Does anyone know of a good database of cities, states and zip codes? Only need Us but if world or even multiple countries were available that would be nice.<p>Another possibility that would be nice is if I could simply check the location against Google or Facebook but couldn't find any API for this. Maybe someone could point me in the right direction?

2 条评论

byoung2超过 14 年前
USPS has an API: <a href="http://www.usps.com/webtools/address.htm" rel="nofollow">http://www.usps.com/webtools/address.htm</a> Census.gov has downloadable data: <a href="http://www.census.gov/geo/www/tiger/tigermap.html#ZIP" rel="nofollow">http://www.census.gov/geo/www/tiger/tigermap.html#ZIP</a>
jeffmould超过 14 年前
I've used this in the past for projects and was pretty good:<p><a href="http://www.zip-codes.com/" rel="nofollow">http://www.zip-codes.com/</a>