开发者

Definitive country list for e-commerce applications

I am looking for a list of countries for use in the development of an e-commerce app including:

Country Name, Country Code, Languag开发者_JAVA百科e, etc.

While only the country name (and probably the country code) are really necessary, some of the other info may be nice (as long as there isn't too much!). I used to have a good list but I can't find it anymore.

Thanks.


ISO (International Standards Organization) maintains a list of countries here.


Check ISO 3166-1 for country codes.

There are 3 sets of country codes:

  • ISO 3166-1 Alpha-2
  • ISO 3166-1 Alpha-3
  • ISO 3166-1 Numeric

For the list of all 3 sets, view here: http://en.wikipedia.org/wiki/ISO_3166-1


Wikipedia, as usual, has a pretty definitive list. It's not in a readily computer-readable form, but it shouldn't take long to massage it, if you can't find anything else:

ISO_3166-1 (country codes)

List of sovereign states (countries and their languages)


Several options for "country code" but ISO is probably best

Language will be difficult because it's often many per country. Take Switzerland where I am: do you support French/German only? Include Italian (many sites don't). And for the handful of Romansch...?


http://cldr.unicode.org/ - common standard multilanguage database include country list and other localizable data.


Here is the curated and regularly updated country list data available in CSV and JSON formats (ISO 3166-1):

https://datahub.io/core/country-list

If you need more comprehensive country codes, e.g., ISO3166-1-Alpha-2, ISO3166-1-Alpha-3, ITU dialing codes, ISO 4217 currency codes, and many others:

https://datahub.io/core/country-codes

There is a data set for language codes as well. ISO Language Codes (639-1 and 693-2) and IETF Language Types:

https://datahub.io/core/language-codes

For more reference data you can take a look at:

https://datahub.io/awesome/reference-data

Good luck!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜