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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: What to use for world zip codes?

21 点作者 goldham大约 15 年前
I'm developing a website and need postal codes for as many countries as possible. All I need is City, State, and zip/postal code. I found zipcodeworld.com but, they're products are a lot more than I need. Wondering if anyone knows of a low cost solution?

8 条评论

rmc大约 15 年前
Address formats are different all over the world. Lots of places call them "postcodes" not zip codes (e.g. the UK). Some places have no postcodes (e.g. Ireland). Lots of places don't have 'states'. And the US has lots of 'cities' whereas lots of places would have local towns or counties.<p>You usually need addresses to send someone something. I'd suggest just putting in a text field and letting the user just type it in freeform.
评论 #1358888 未加载
评论 #1357218 未加载
评论 #1364826 未加载
评论 #1357393 未加载
leftnode大约 15 年前
Also, keep in mind, don't make the Zip Code required. Some countries (Ireland being the most prominent) don't have them.
评论 #1357173 未加载
po大约 15 年前
What language are you using? I don't know of a datasource for it but I'm familiar with the Django project's localflavor contrib app:<p><a href="http://docs.djangoproject.com/en/dev/ref/contrib/localflavor/" rel="nofollow">http://docs.djangoproject.com/en/dev/ref/contrib/localflavor...</a><p>You can also try searching through programmable web:<p><a href="http://www.programmableweb.com/apis/directory" rel="nofollow">http://www.programmableweb.com/apis/directory</a>
yarone大约 15 年前
The best resource that I know of is addressdoctor.com.<p>See their demo here: <a href="http://www.addressdoctor.com/lookup/default.aspx?lang=en" rel="nofollow">http://www.addressdoctor.com/lookup/default.aspx?lang=en</a><p>Via a web service, they enable you to produce the right address form fields on a country-by-country basis. I've met with their CEO in person and kicked the tires and would highly recommend them.
niklas大约 15 年前
Here's a few <a href="http://www.geonames.org/postal-codes/" rel="nofollow">http://www.geonames.org/postal-codes/</a>
评论 #1358669 未加载
lsc大约 15 年前
I use what came with freeside, my billing system. <a href="http://www.freeside.biz/freeside/" rel="nofollow">http://www.freeside.biz/freeside/</a> but it's not complete, so a better solution, if someone has one, would be great.
paulgerhardt大约 15 年前
<a href="http://en.wikipedia.org/wiki/List_of_postal_codes" rel="nofollow">http://en.wikipedia.org/wiki/List_of_postal_codes</a>
henrikschroder大约 15 年前
What do you need the postal codes for? How are you going to use them?