Skip to content

Instantly share code, notes, and snippets.

@huy-viki
Last active February 6, 2017 02:00
Show Gist options
  • Save huy-viki/6387530 to your computer and use it in GitHub Desktop.
Save huy-viki/6387530 to your computer and use it in GitHub Desktop.
Country Regions Hierachy. From top to bottom: Continent -> Region -> Sub-region -> Country
{
"_": [
"ap",
"rd",
"zz"
],
"Africa": {
"Africa": {
"North Africa": [
"dz",
"eg",
"ly",
"ma",
"sd",
"tn",
"eh"
],
"Central Africa": [
"ao",
"cm",
"cf",
"td",
"cd",
"cg",
"gq",
"ga",
"st"
],
"West Africa": [
"bj",
"bf",
"cv",
"ci",
"gm",
"gh",
"gn",
"gw",
"lr",
"ml",
"mr",
"ne",
"ng",
"sh",
"sn",
"sl",
"tg"
],
"South Africa": [
"bw",
"ls",
"na",
"za",
"sz"
],
"East Africa": [
"bi",
"km",
"dj",
"er",
"et",
"ke",
"mg",
"mw",
"mu",
"yt",
"mz",
"re",
"rw",
"sc",
"so",
"tz",
"ug",
"zm",
"zw"
]
}
},
"South America": {
"Latin America and the Caribbean": {
"South America": [
"ar",
"bo",
"br",
"cl",
"co",
"ec",
"fk",
"gf",
"gy",
"py",
"pe",
"sr",
"uy",
"ve"
]
},
"South America": {
"South America": [
"gs"
]
}
},
"Oceania": {
"Oceania": {
"Polynesia": [
"as",
"ck",
"pf",
"nu",
"pn",
"ws",
"tk",
"to",
"tv",
"wf"
],
"Australia and New Zealand": [
"au",
"nz",
"nf"
],
"Melanesia": [
"fj",
"nc",
"pg",
"sb",
"vu"
],
"Micronesia": [
"gu",
"ki",
"mh",
"fm",
"nr",
"mp",
"pw",
"um"
]
}
},
"Asia": {
"Asia": {
"South Asia": [
"af",
"bd",
"bt",
"io",
"in",
"ir",
"mv",
"np",
"pk",
"lk"
],
"West Asia": [
"am",
"az",
"bh",
"cy",
"ge",
"iq",
"il",
"jo",
"kw",
"lb",
"om",
"qa",
"sa",
"sy",
"ae",
"ye",
"ps"
],
"South East Asia": [
"bn",
"kh",
"cx",
"cc",
"id",
"la",
"my",
"mm",
"ph",
"sg",
"th",
"vn",
"tl"
],
"East Asia": [
"cn",
"hk",
"jp",
"kr",
"mo",
"mn",
"kp",
"tw"
],
"Central Asia": [
"kz",
"kg",
"tj",
"uz",
"tm"
]
}
},
"Europe": {
"Europe": {
"South Europe": [
"al",
"ad",
"ba",
"hr",
"gi",
"gr",
"it",
"mk",
"mt",
"pt",
"sm",
"si",
"es",
"va",
"rs",
"me",
"xk"
],
"West Europe": [
"at",
"be",
"fr",
"de",
"li",
"lu",
"mc",
"nl",
"ch",
"gg",
"je"
],
"East Europe": [
"by",
"bg",
"cz",
"hu",
"md",
"pl",
"ro",
"ru",
"sk",
"ua"
],
"North Europe": [
"dk",
"ee",
"fo",
"fi",
"is",
"ie",
"lv",
"lt",
"no",
"sj",
"se",
"gb",
"ax",
"im"
]
},
"Asia": {
"West Asia": [
"tr"
]
}
},
"North America": {
"Latin America and the Caribbean": {
"Caribbean": [
"ai",
"ag",
"aw",
"bs",
"bb",
"ky",
"cu",
"dm",
"do",
"gd",
"gp",
"ht",
"jm",
"mq",
"ms",
"pr",
"kn",
"lc",
"vc",
"tt",
"tc",
"vg",
"vi",
"an",
"mf"
],
"Central America": [
"bz",
"cr",
"sv",
"gt",
"hn",
"mx",
"ni",
"pa"
],
"North America": [
"bm",
"ca",
"gl",
"pm",
"us"
]
}
},
"Antarctica": {
"Antarctica": {
"Antarctica": [
"aq",
"bv",
"tf",
"hm"
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment