/iso-3166-2.json

JSON file of ISO 3166-2 subdivisions.

Primary LanguageJavaScript

iso-3166-2.json

NPM version Downloads Size Gzipped size

JSON file of ISO 3166-2 subdivisions.

Install

$ npm i iso-3166-2.json --save

Layout

{
  [country code]: {
    name: [country name]
    divisions: {
      [subdivision code]: [subdivision name]
    }
  }
}

or

{
  ...
  US: {
    name: "United States"
    divisions: {
      ...
      "US-CA": "California"
      ...
    }
  }
  ...
}

Source

eQuest.csv

From eQuest, derived from:

http://docs.equest.com/eQuestCountryAndStateCodes.xls