所有国家/地区States应用程序中的城市和邮政编码 [英] All Countries States Cities and Zipcodes in a Application

查看:114
本文介绍了所有国家/地区States应用程序中的城市和邮政编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我一直在寻找所有的国家。



我发现了 geonames.org ,我猜想所有的内容。但是没有办法直接获取这些数据。



我正在使用rails。如果有任何助手或插件,它会很棒。如果有任何可解析格式的完整资源,我可以使用它来获取此数据库,这将非常棒。



请推荐您是否有任何感谢



我有ISO国家代码列表,但是一些国家没有州。



预先致谢

解决方案

谢谢大家,



我得到了所有这些国家和州,但没有邮政编码。


http://27.org/isocountrylist/iso_country_list.sql


这包含所有国家和地区iso-3166代码(西伯利亚代码需要从CS更改为RS)



这里是FIPS文件,适用于国家/地区


http://www.maxmind的.com /应用程序/ fips_inclu de


对于邮政编码验证,我正在使用


http://www.geonames.org web服务


还有一个geonames ruby​​ gem,这使得邮政编码验证非常简单。



希望这可以帮助任何需要这些信息的人,值得保持它在Web项目中的便利。



另一个链接(谢谢@laise): http://dev.maxmind.com/static/csv/codes/maxmind/region.csv p>

Is there a way getting all countries, states,cities zipcodes/ in one single database.

I have been looking all over.

I discovered geonames.org, which has I guess all of the content. But there is no way to fetch that data directly.

I am using rails. If there any helpers or Plugins, it'd be great. It would be awesome if there is a complete resource in any parsable format which I can use to get this database in place.

Please recommend if you any thanks

I do have the iso country code list but no States for some countries.

Thanks in advance

解决方案

Thanks Guys,

I got all the the countries and states of all of them, but no zip codes.

http://27.org/isocountrylist/iso_country_list.sql

This contains all countries, and there iso-3166 codes ( Siberia code needs to be changed from "CS" to "RS")

And here is the FIPS file for countries with states

http://www.maxmind.com/app/fips_include

For zip code validation I am using

http://www.geonames.org webservices

There is a geonames ruby gem as well, which makes it really simple to do zipcode validations

Hope that helps anybody who needs this information, worth keeping it handy for web projects.

Another Link ( thanks @laise ): http://dev.maxmind.com/static/csv/codes/maxmind/region.csv

这篇关于所有国家/地区States应用程序中的城市和邮政编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆