respect-validation/data/iso_3166-2/MV.json
Henrique Moody 718bacad04
Remove subdivision code rules per country
There is no much benefit from having individual rules for each country's
subdivision, quite the opposite. It increases the amount of code and
makes it hard to change the implementation of these rules. Right now,
the only sane way to change those rules is with a customized script.

This commit will remove the Subdivision Code rules per country and
instead will put that information into JSON files.

We both wouldn't like to keep this in this library anymore, and we are
considering having another library to deal with this data [1], but since
it seems like it may take some time, looks better to do it temporarily
here.

[1]: https://github.com/sokil/php-isocodes/issues/12

Co-authored-by: Mazen Touati <mazen_touati@hotmail.com>
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-04-06 23:05:24 +02:00

27 lines
1,020 B
JSON

{
"source": "http://www.geonames.org/MV/administrative-division-maldives.html",
"country": "Maldives",
"subdivisions": {
"00": "Alifu Dhaalu / Ari Atholhu Dhekunuburi",
"01": "Seenu / Addu Atholhu",
"02": "Alifu Alifu / Ari Atholhu Uthuruburi",
"03": "Lhaviyani / Faadhippolhu",
"04": "Vaavu / Felidhu Atholhu",
"05": "Laamu / Haddhdhunmathi",
"07": "Haa Alifu / Thiladhunmathee Uthuruburi",
"08": "Thaa / Kolhumadulu",
"12": "Meemu / Mulakatholhu",
"13": "Raa / Maalhosmadulu Uthuruburi",
"14": "Faafu / Nilandhe Atholhu Uthuruburi",
"17": "Dhaalu / Nilandhe Atholhu Dhekunuburi",
"20": "Baa / Maalhosmadulu Dhekunuburi",
"23": "Haa Dhaalu / Thiladhunmathee Dhekunuburi",
"24": "Shaviyani / Miladhunmadulu Uthuruburi",
"25": "Noonu / Miladhunmadulu Dhekunuburi",
"26": "Kaafu / Maale Atholhu",
"27": "Gaafu Alifu / Huvadhu Atholhu Uthuruburi",
"28": "Gaafu Dhaalu / Huvadhu Atholhu Dhekunuburi",
"29": "Gnaviyani / Fuvammulah"
}
}