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

72 lines
2 KiB
JSON

{
"source": "http://www.geonames.org/GR/administrative-division-greece.html",
"country": "Greece",
"subdivisions": {
"01": "Nomós Aitolías kai Akarnanías",
"03": "Nomós Voiotías",
"04": "Nomós Evvoías",
"05": "Nomós Evrytanías",
"06": "Nomós Fthiótidos",
"07": "Nomós Fokídos",
"11": "Nomós Argolídos",
"12": "Nomós Arkadías",
"13": "Nomós Achaḯas",
"14": "Nomós Ileías",
"15": "Nomós Korinthías",
"16": "Nomós Lakonías",
"17": "Nomós Messinías",
"21": "Nomós Zakýnthou",
"22": "Nomós Kerkýras",
"23": "Nomós Kefallinías",
"24": "Nomós Lefkádas",
"31": "Nomós Ártis",
"32": "Nomós Thesprotías",
"33": "Nomós Ioannínon",
"34": "Nomós Prevézis",
"41": "Nomós Kardhítsas",
"42": "Nomós Larísis",
"43": "Nomós Magnisías",
"44": "Nomós Trikálon",
"51": "Nomós Grevenón",
"52": "Nomós Drámas",
"53": "Nomós Imathías",
"54": "Nomós Thessaloníkis",
"55": "Nomós Kaválas",
"56": "Nomós Kastoriás",
"57": "Nomós Kilkís",
"58": "Nomós Kozánis",
"59": "Nomós Péllis",
"61": "Nomós Pierías",
"62": "Nomós Serrón",
"63": "Nomós Florínis",
"64": "Nomós Chalkidikís",
"69": "Agio Oros",
"71": "Nomós Évrou",
"72": "Nomós Xánthis",
"73": "Nomós Rodópis",
"81": "Nomós Dodekanísou",
"82": "Nomós Kykládon",
"83": "Nomós Lésvou",
"84": "Nomós Sámou",
"85": "Nomós Chíou",
"91": "Nomós Irakleíou",
"92": "Nomós Lasithíou",
"93": "Nomós Rethýmnis",
"94": "Nomós Chaniás",
"A": "Anatoliki Makedonia kai Thraki",
"A1": "Nomós Attikís",
"B": "Kentriki Makedonia",
"C": "Dytiki Makedonia",
"D": "Ipeiros",
"E": "Thessalia",
"F": "Ionia Nisia",
"G": "Dytiki Ellada",
"H": "Sterea Ellada",
"I": "Attiki",
"J": "Peloponnisos",
"K": "Voreio Aigaio",
"L": "Notio Aigaio",
"M": "Kriti"
}
}