mirror of
https://github.com/Respect/Validation.git
synced 2024-06-07 16:22:16 +02:00
718bacad04
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>
133 lines
3 KiB
JSON
133 lines
3 KiB
JSON
{
|
|
"source": "http://www.geonames.org/IT/administrative-division-italy.html",
|
|
"country": "Italy",
|
|
"subdivisions": {
|
|
"21": "Piedmont",
|
|
"23": "Regione Autonoma Valle d'Aosta",
|
|
"25": "Lombardy",
|
|
"32": "Regione Autonoma Trentino-Alto Adige",
|
|
"34": "Regione del Veneto",
|
|
"36": "Regione Autonoma Friuli-Venezia Giulia",
|
|
"42": "Regione Liguria",
|
|
"45": "Regione Emilia-Romagna",
|
|
"52": "Tuscany",
|
|
"55": "Regione Umbria",
|
|
"57": "Regione Marche",
|
|
"62": "Regione Lazio",
|
|
"65": "Regione Abruzzo",
|
|
"67": "Regione Molise",
|
|
"72": "Regione Campania",
|
|
"75": "Regione Puglia",
|
|
"77": "Regione Basilicata",
|
|
"78": "Regione Calabria",
|
|
"82": "Regione Autonoma Siciliana",
|
|
"88": "Regione Autonoma della Sardegna",
|
|
"AG": "Agrigento",
|
|
"AL": "Alessandria",
|
|
"AN": "Ancona",
|
|
"AO": "Aosta",
|
|
"AP": "Ascoli Piceno",
|
|
"AQ": "L'Aquila",
|
|
"AR": "Arezzo",
|
|
"AT": "Asti",
|
|
"AV": "Avellino",
|
|
"BA": "Bari",
|
|
"BG": "Bergamo",
|
|
"BI": "Biella",
|
|
"BL": "Belluno",
|
|
"BN": "Benevento",
|
|
"BO": "Bologna",
|
|
"BR": "Brindisi",
|
|
"BS": "Brescia",
|
|
"BT": "Barletta-Andria-Trani",
|
|
"BZ": "Bolzano",
|
|
"CA": "Cagliari",
|
|
"CB": "Campobasso",
|
|
"CE": "Caserta",
|
|
"CH": "Chieti",
|
|
"CL": "Caltanissetta",
|
|
"CN": "Cuneo",
|
|
"CO": "Como",
|
|
"CR": "Cremona",
|
|
"CS": "Cosenza",
|
|
"CT": "Catania",
|
|
"CZ": "Catanzaro",
|
|
"EN": "Enna",
|
|
"FC": "Forlì-Cesena",
|
|
"FE": "Ferrara",
|
|
"FG": "Foggia",
|
|
"FI": "Firenze",
|
|
"FM": "Fermo",
|
|
"FR": "Frosinone",
|
|
"GE": "Genova",
|
|
"GO": "Gorizia",
|
|
"GR": "Grosseto",
|
|
"IM": "Imperia",
|
|
"IS": "Isernia",
|
|
"KR": "Crotone",
|
|
"LC": "Lecco",
|
|
"LE": "Lecce",
|
|
"LI": "Livorno",
|
|
"LO": "Lodi",
|
|
"LT": "Latina",
|
|
"LU": "Lucca",
|
|
"MB": "Monza e Brianza",
|
|
"MC": "Macerata",
|
|
"ME": "Messina",
|
|
"MI": "Milano",
|
|
"MN": "Mantova",
|
|
"MO": "Modena",
|
|
"MS": "Massa-Carrara",
|
|
"MT": "Matera",
|
|
"NA": "Napoli",
|
|
"NO": "Novara",
|
|
"NU": "Nuoro",
|
|
"OR": "Oristano",
|
|
"PA": "Palermo",
|
|
"PC": "Piacenza",
|
|
"PD": "Padova",
|
|
"PE": "Pescara",
|
|
"PG": "Perugia",
|
|
"PI": "Pisa",
|
|
"PN": "Pordenone",
|
|
"PO": "Prato",
|
|
"PR": "Parma",
|
|
"PT": "Pistoia",
|
|
"PU": "Pesaro e Urbino",
|
|
"PV": "Pavia",
|
|
"PZ": "Potenza",
|
|
"RA": "Ravenna",
|
|
"RC": "Reggio Calabria",
|
|
"RE": "Reggio Emilia",
|
|
"RG": "Ragusa",
|
|
"RI": "Rieti",
|
|
"RM": "Roma",
|
|
"RN": "Rimini",
|
|
"RO": "Rovigo",
|
|
"SA": "Salerno",
|
|
"SI": "Siena",
|
|
"SO": "Sondrio",
|
|
"SP": "La Spezia",
|
|
"SR": "Siracusa",
|
|
"SS": "Sassari",
|
|
"SV": "Savona",
|
|
"TA": "Taranto",
|
|
"TE": "Teramo",
|
|
"TN": "Trento",
|
|
"TO": "Torino",
|
|
"TP": "Trapani",
|
|
"TR": "Terni",
|
|
"TS": "Trieste",
|
|
"TV": "Treviso",
|
|
"UD": "Udine",
|
|
"VA": "Varese",
|
|
"VB": "Verbano-Cusio-Ossola",
|
|
"VC": "Vercelli",
|
|
"VE": "Venezia",
|
|
"VI": "Vicenza",
|
|
"VR": "Verona",
|
|
"VT": "Viterbo",
|
|
"VV": "Vibo Valentia"
|
|
}
|
|
}
|