respect-validation/data/iso_3166-2/KE.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

54 lines
1.1 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"source": "http://www.geonames.org/KE/administrative-division-kenya.html",
"country": "Kenya",
"subdivisions": {
"01": "Baringo",
"02": "Bomet",
"03": "Bungoma",
"04": "Busia",
"05": "Elgeyo/Marakwet",
"06": "Embu",
"07": "Garissa",
"08": "Homa Bay",
"09": "Isiolo",
"10": "Kajiado",
"11": "Kakamega",
"12": "Kericho",
"13": "Kiambu",
"14": "Kilifi",
"15": "Kirinyaga",
"16": "Kisii",
"17": "Kisumu",
"18": "Kitui",
"19": "Kwale",
"20": "Laikipia",
"21": "Lamu",
"22": "Machakos",
"23": "Makueni",
"24": "Mandera",
"25": "Marsabit",
"26": "Meru",
"27": "Migori",
"28": "Mombasa",
"29": "Muranga",
"30": "Nairobi",
"31": "Nakuru",
"32": "Nandi",
"33": "Narok",
"34": "Nyamira",
"35": "Nyandarua",
"36": "Nyeri",
"37": "Samburu",
"38": "Siaya",
"39": "Taita/Taveta",
"40": "Tana River",
"41": "Tharak-Nithi",
"42": "Trans Nzoia",
"43": "Turkana",
"44": "Uasin Gishu",
"45": "Vihiga",
"46": "Wajir",
"47": "West Pokot"
}
}