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

105 lines
2.6 KiB
JSON

{
"source": "http://www.geonames.org/PH/administrative-division-philippines.html",
"country": "Philippines",
"subdivisions": {
"00": "National Capital Region",
"01": "Ilocos",
"02": "Cagayan Valley",
"03": "Central Luzon",
"05": "Bicol",
"06": "Western Visayas",
"07": "Central Visayas",
"08": "Eastern Visayas",
"09": "Zamboanga Peninsula",
"10": "Northern Mindanao",
"11": "Davao",
"12": "Soccsksargen",
"13": "Caraga",
"14": "Autonomous Region in Muslim Mindanao,",
"15": "Cordillera Administrative Region",
"40": "Calabarzon",
"41": "Mimaropa",
"ABR": "Abra",
"AGN": "Agusan del Norte",
"AGS": "Agusan del Sur",
"AKL": "Aklan",
"ALB": "Albay",
"ANT": "Antique",
"APA": "Apayao",
"AUR": "Aurora",
"BAN": "Bataan",
"BAS": "Basilan",
"BEN": "Benguet",
"BIL": "Biliran",
"BOH": "Bohol",
"BTG": "Batangas",
"BTN": "Batanes",
"BUK": "Bukidnon",
"BUL": "Bulacan",
"CAG": "Cagayan",
"CAM": "Camiguin",
"CAN": "Camarines Norte",
"CAP": "Capiz",
"CAS": "Camarines Sur",
"CAT": "Catanduanes",
"CAV": "Cavite",
"CEB": "Cebu",
"COM": "Compostela Valley",
"DAO": "Davao Oriental",
"DAS": "Davao del Sur",
"DAV": "Davao del Norte",
"DIN": "Dinagat Islands",
"DVO": "Davao Occidental",
"EAS": "Eastern Samar",
"GUI": "Guimaras",
"IFU": "Ifugao",
"ILI": "Iloilo",
"ILN": "Ilocos Norte",
"ILS": "Ilocos Sur",
"ISA": "Isabela",
"KAL": "Kalinga",
"LAG": "Laguna",
"LAN": "Lanao del Norte",
"LAS": "Lanao del Sur",
"LEY": "Leyte",
"LUN": "La Union",
"MAD": "Marinduque",
"MAG": "Maguindanao",
"MAS": "Masbate",
"MDC": "Mindoro Occidental",
"MDR": "Mindoro Oriental",
"MOU": "Mountain Province",
"MSC": "Misamis Occidental",
"MSR": "Misamis Oriental",
"NCO": "North Cotabato",
"NEC": "Negros Occidental",
"NER": "Negros Oriental",
"NSA": "Northern Samar",
"NUE": "Nueva Ecija",
"NUV": "Nueva Vizcaya",
"PAM": "Pampanga",
"PAN": "Pangasinan",
"PLW": "Palawan",
"QUE": "Quezon",
"QUI": "Quirino",
"RIZ": "Rizal",
"ROM": "Romblon",
"SAR": "Sarangani",
"SCO": "South Cotabato",
"SIG": "Siquijor",
"SLE": "Southern Leyte",
"SLU": "Sulu",
"SOR": "Sorsogon",
"SUK": "Sultan Kudarat",
"SUN": "Surigao del Norte",
"SUR": "Surigao del Sur",
"TAR": "Tarlac",
"TAW": "Tawi-Tawi",
"WSA": "Western Samar",
"ZAN": "Zamboanga del Norte",
"ZAS": "Zamboanga del Sur",
"ZMB": "Zambales",
"ZSI": "Zamboanga Sibugay"
}
}