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

119 lines
3.2 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/CZ/administrative-division-czech-republic.html",
"country": "Czechia",
"subdivisions": {
"10": "Prague - the Capital (Praha - hlavni mesto)",
"101": "Praha 1",
"102": "Praha 2",
"103": "Praha 3",
"104": "Praha 4",
"105": "Praha 5",
"106": "Praha 6",
"107": "Praha 7",
"108": "Praha 8",
"109": "Praha 9",
"110": "Praha 10",
"111": "Praha 11",
"112": "Praha 12",
"113": "Praha 13",
"114": "Praha 14",
"115": "Praha 15",
"116": "Praha 16",
"117": "Praha 17",
"118": "Praha 18",
"119": "Praha 19",
"120": "Praha 20",
"121": "Praha 21",
"122": "Praha 22",
"20": "Central Bohemian Region (Stredocesky kraj)",
"201": "Benešov",
"202": "Beroun",
"203": "Kladno",
"204": "Kolín",
"205": "Kutná Hora",
"206": "Mělník",
"207": "Mladá Boleslav",
"208": "Nymburk",
"209": "Praha-východ",
"20A": "Praha-západ",
"20B": "Příbram",
"20C": "Rakovník",
"31": "South Bohemian Region (Jihocesky kraj)",
"311": "České Budějovice",
"312": "Český Krumlov",
"313": "Jindřichův Hradec",
"314": "Písek",
"315": "Prachatice",
"316": "Strakonice",
"317": "Tábor",
"32": "Plzen( Region Plzensky kraj)",
"321": "Domažlice",
"322": "Klatovy",
"323": "Plzeň-město",
"324": "Plzeň-jih",
"325": "Plzeň-sever",
"326": "Rokycany",
"327": "Tachov",
"41": "Carlsbad Region (Karlovarsky kraj)",
"411": "Cheb",
"412": "Karlovy Vary",
"413": "Sokolov",
"42": "Usti nad Labem Region (Ustecky kraj)",
"421": "Děčín",
"422": "Chomutov",
"423": "Litoměřice",
"424": "Louny",
"425": "Most",
"426": "Teplice",
"427": "Ústí nad Labem",
"51": "Liberec Region (Liberecky kraj)",
"511": "Česká Lípa",
"512": "Jablonec nad Nisou",
"513": "Liberec",
"514": "Semily",
"52": "Hradec Kralove Region (Kralovehradecky kraj)",
"521": "Hradec Králové",
"522": "Jičín",
"523": "Náchod",
"524": "Rychnov nad Kněžnou",
"525": "Trutnov",
"53": "Pardubice Region (Pardubicky kraj)",
"531": "Chrudim",
"532": "Pardubice",
"533": "Svitavy",
"534": "Ústí nad Orlicí",
"63": "Vysocina Region (kraj Vysocina)",
"631": "Havlíčkův Brod",
"632": "Jihlava",
"633": "Pelhřimov",
"634": "Třebíč",
"635": "Ždár nad Sázavou",
"64": "South Moravian Region (Jihomoravsky kraj)",
"641": "Blansko",
"642": "Brno-město",
"643": "Brno-venkov",
"644": "Břeclav",
"645": "Hodonín",
"646": "Vyškov",
"647": "Znojmo",
"71": "Olomouc Region (Olomoucky kraj)",
"711": "Jeseník",
"712": "Olomouc",
"713": "Prostĕjov",
"714": "Přerov",
"715": "Šumperk",
"72": "Zlin Region (Zlinsky kraj)",
"721": "Kromĕříž",
"722": "Uherské Hradištĕ",
"723": "Vsetín",
"724": "Zlín",
"80": "Moravian-Silesian Region (Moravskoslezsky kraj)",
"801": "Bruntál",
"802": "Frýdek - Místek",
"803": "Karviná",
"804": "Nový Jičín",
"805": "Opava",
"806": "Ostrava - město"
}
}