JavaScript 谁有一份 CODE 和 NAME 对应的 json 格式的国家列表

1272729223 · 2016年05月11日 · 最后由 1272729223 回复于 2016年05月11日 · 3387 次阅读

应该是遵守 ISO 3166-1-alpha-2 codes的。

如:

...

[
  { "code": "AF", "name": "Afghanistan" },
  { "code": "AX", "name": "Åland Islands" },
  { "code": "AL", "name": "Albania" },
  ...
  { "code": "CN", "name": "China" },
  ...
]

...

当然上面这份是英文对照的,需要中文对照的。

https://github.com/hexorx/countries

All sorts of useful information about every country packaged as convenient little country objects. It includes data from ISO 3166 (countries and states/subdivisions ), ISO 4217 (currency), and E.164 (phone numbers).

需要 登录 后方可回复, 如果你还没有账号请 注册新账号