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>
125 lines
3.3 KiB
JSON
125 lines
3.3 KiB
JSON
{
|
|
"source": "http://www.geonames.org/FR/administrative-division-france.html",
|
|
"country": "France",
|
|
"subdivisions": {
|
|
"01": "Ain",
|
|
"02": "Aisne",
|
|
"03": "Allier",
|
|
"04": "Alpes-de-Haute-Provence",
|
|
"05": "Hautes-Alpes",
|
|
"06": "Alpes-Maritimes",
|
|
"07": "Ardèche",
|
|
"08": "Ardennes",
|
|
"09": "Ariège",
|
|
"10": "Aube",
|
|
"11": "Aude",
|
|
"12": "Aveyron",
|
|
"13": "Bouches-du-Rhône",
|
|
"14": "Calvados",
|
|
"15": "Cantal",
|
|
"16": "Charente",
|
|
"17": "Charente-Maritime",
|
|
"18": "Cher",
|
|
"19": "Corrèze",
|
|
"21": "Côte-d'Or",
|
|
"22": "Côtes-d'Armor",
|
|
"23": "Creuse",
|
|
"24": "Dordogne",
|
|
"25": "Doubs",
|
|
"26": "Drôme",
|
|
"27": "Eure",
|
|
"28": "Eure-et-Loir",
|
|
"29": "Finistère",
|
|
"2A": "Corse-du-Sud",
|
|
"2B": "Haute-Corse",
|
|
"30": "Gard",
|
|
"31": "Haute-Garonne",
|
|
"32": "Gers",
|
|
"33": "Gironde",
|
|
"34": "Hérault",
|
|
"35": "Ille-et-Vilaine",
|
|
"36": "Indre",
|
|
"37": "Indre-et-Loire",
|
|
"38": "Isère",
|
|
"39": "Jura",
|
|
"40": "Landes",
|
|
"41": "Loir-et-Cher",
|
|
"42": "Loire",
|
|
"43": "Haute-Loire",
|
|
"44": "Loire-Atlantique",
|
|
"45": "Loiret",
|
|
"46": "Lot",
|
|
"47": "Lot-et-Garonne",
|
|
"48": "Lozère",
|
|
"49": "Maine-et-Loire",
|
|
"50": "Manche",
|
|
"51": "Marne",
|
|
"52": "Haute-Marne",
|
|
"53": "Mayenne",
|
|
"54": "Meurthe-et-Moselle",
|
|
"55": "Meuse",
|
|
"56": "Morbihan",
|
|
"57": "Moselle",
|
|
"58": "Nièvre",
|
|
"59": "Nord",
|
|
"60": "Oise",
|
|
"61": "Orne",
|
|
"62": "Pas-de-Calais",
|
|
"63": "Puy-de-Dôme",
|
|
"64": "Pyrénées-Atlantiques",
|
|
"65": "Hautes-Pyrénées",
|
|
"66": "Pyrénées-Orientales",
|
|
"67": "Bas-Rhin",
|
|
"68": "Haut-Rhin",
|
|
"69": "Rhône",
|
|
"70": "Haute-Saône",
|
|
"71": "Saône-et-Loire",
|
|
"72": "Sarthe",
|
|
"73": "Savoie",
|
|
"74": "Haute-Savoie",
|
|
"75": "Paris",
|
|
"76": "Seine-Maritime",
|
|
"77": "Seine-et-Marne",
|
|
"78": "Yvelines",
|
|
"79": "Deux-Sèvres",
|
|
"80": "Somme",
|
|
"81": "Tarn",
|
|
"82": "Tarn-et-Garonne",
|
|
"83": "Var",
|
|
"84": "Vaucluse",
|
|
"85": "Vendée",
|
|
"86": "Vienne",
|
|
"87": "Haute-Vienne",
|
|
"88": "Vosges",
|
|
"89": "Yonne",
|
|
"90": "Territoire de Belfort",
|
|
"91": "Essonne",
|
|
"92": "Hauts-de-Seine",
|
|
"93": "Seine-Saint-Denis",
|
|
"94": "Val-de-Marne",
|
|
"95": "Val-d'Oise",
|
|
"ARA": "Auvergne-Rhône-Alpes",
|
|
"BFC": "Bourgogne-Franche-Comté",
|
|
"BL": "Saint Barthélemy (see also separate ISO 3166-1 entry under BL)",
|
|
"BRE": "Bretagne",
|
|
"COR": "Corse",
|
|
"CP": "Clipperton",
|
|
"CVL": "Centre-Val de Loire",
|
|
"GES": "Grand Est",
|
|
"HDF": "Hauts-de-France",
|
|
"IDF": "Île-de-France",
|
|
"MF": "Saint Martin (see also separate ISO 3166-1 entry under MF)",
|
|
"NAQ": "Nouvelle-Aquitaine",
|
|
"NC": "Nouvelle-Calédonie (see also separate ISO 3166-1 entry under NC)",
|
|
"NOR": "Normandy",
|
|
"OCC": "Occitanie",
|
|
"PAC": "Provence-Alpes-Côte d'Azur",
|
|
"PDL": "Pays de la Loire",
|
|
"PF": "Polynésie française (see also separate ISO 3166-1 entry under PF)",
|
|
"PM": "Saint-Pierre-et-Miquelon (see also separate ISO 3166-1 entry under PM)",
|
|
"TF": "Terres Australes Françaises (see also separate ISO 3166-1 entry under TF)",
|
|
"WF": "Wallis et Futuna (see also separate ISO 3166-1 entry under WF)",
|
|
"YT": "Mayotte (see also separate ISO 3166-1 entry under YT)"
|
|
}
|
|
}
|