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

92 lines
2 KiB
JSON

{
"source": "http://www.geonames.org/MK/administrative-division-macedonia.html",
"country": "Macedonia",
"subdivisions": {
"01": "Aerodrom †",
"02": "Aračinovo",
"03": "Berovo",
"04": "Bitola",
"05": "Bogdanci",
"06": "Bogovinje",
"07": "Bosilovo",
"08": "Brvenica",
"09": "Butel †",
"10": "Valandovo",
"11": "Vasilevo",
"12": "Vevčani",
"13": "Veles",
"14": "Vinica",
"15": "Vraneštica",
"16": "Vrapčište",
"17": "Gazi Baba †",
"18": "Gevgelija",
"19": "Gostivar",
"20": "Gradsko",
"21": "Debar",
"22": "Debarca",
"23": "Delčevo",
"24": "Demir Kapija",
"25": "Demir Hisar",
"26": "Dojran",
"27": "Dolneni",
"28": "Drugovo",
"29": "Gjorče Petrov †",
"30": "Želino",
"31": "Zajas",
"32": "Zelenikovo",
"33": "Zrnovci",
"34": "Ilinden",
"35": "Jegunovce",
"36": "Kavadarci",
"37": "Karbinci",
"38": "Karpoš †",
"39": "Kisela Voda †",
"40": "Kičevo",
"41": "Konče",
"42": "Kočani",
"43": "Kratovo",
"44": "Kriva Palanka",
"45": "Krivogaštani",
"46": "Kruševo",
"47": "Kumanovo",
"48": "Lipkovo",
"49": "Lozovo",
"50": "Mavrovo-i-Rostuša",
"51": "Makedonska Kamenica",
"52": "Makedonski Brod",
"53": "Mogila",
"54": "Negotino",
"55": "Novaci",
"56": "Novo Selo",
"57": "Oslomej",
"58": "Ohrid",
"59": "Petrovec",
"60": "Pehčevo",
"61": "Plasnica",
"62": "Prilep",
"63": "Probištip",
"64": "Radoviš",
"65": "Rankovce",
"66": "Resen",
"67": "Rosoman",
"68": "Saraj †",
"69": "Sveti Nikole",
"70": "Štip",
"71": "Struga",
"72": "Strumica",
"73": "Studeničani",
"74": "Šuto Orizari †",
"75": "Tearce",
"76": "Tetovo",
"77": "Centar †",
"78": "Centar Župa",
"79": "Čair †",
"80": "Čaška",
"81": "Češinovo-Obleševo",
"82": "Čučer Sandevo",
"83": "Sopište",
"84": "Staro Nagoričane",
"85": "Skopje"
}
}