Skip to content
Collection of all country subdivions by ISO 3166-2 https://en.wikipedia.org/wiki/ISO_3166-2.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
subdivisions
LICENSE
README.md
Subdivision.php
composer.json

README.md

ISO 3166-2

Complete Collection of json files for the country subdivision from ISO 3166-2.

ISO 3166-2 https://en.wikipedia.org/wiki/ISO_3166-2

Usage

$ukSubdivisions = \L91\ISO_3166_2\Subdivision::getSubdivisions('gb');

Folder Structure

  • subdivisions (all subdivisions by countrycode)
  • countrycode (specific translations)

Example:

  • subdivisions
    • at.json (all subdivisions from austria in the default/country language)
    • at
      • en.json (english translated subdivisions)

Contribute

Feel free to contribute by add translates and co. from the ISO-3166-2.

Progress
Subdivisions 100%
Specific Translates 1%

Code Snippet to get the ISO from Wiki in Dev Tools

var obj = {};
$('.jquery-tablesorter tbody').eq(0).find('td:first-child').each(function() {
     obj[$.trim($(this).text())] = $.trim($(this).next().text());
});

console.log(JSON.stringify(obj, null, 4));
You can’t perform that action at this time.