mirror of
https://github.com/Respect/Validation.git
synced 2024-06-08 08:42:15 +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>
39 lines
990 B
JSON
39 lines
990 B
JSON
{
|
|
"source": "http://www.geonames.org/BS/administrative-division-bahamas.html",
|
|
"country": "Bahamas",
|
|
"subdivisions": {
|
|
"AK": "Acklins Islands",
|
|
"BI": "Bimini and Cat Cay",
|
|
"BP": "Black Point",
|
|
"BY": "Berry Islands",
|
|
"CE": "Central Eleuthera",
|
|
"CI": "Cat Island",
|
|
"CK": "Crooked Island and Long Cay",
|
|
"CO": "Central Abaco",
|
|
"CS": "Central Andros",
|
|
"EG": "East Grand Bahama",
|
|
"EX": "Exuma",
|
|
"FP": "City of Freeport",
|
|
"GC": "Grand Cay",
|
|
"HI": "Harbour Island",
|
|
"HT": "Hope Town",
|
|
"IN": "Inagua",
|
|
"LI": "Long Island",
|
|
"MC": "Mangrove Cay",
|
|
"MG": "Mayaguana",
|
|
"MI": "Moore's Island",
|
|
"NE": "North Eleuthera",
|
|
"NO": "North Abaco",
|
|
"NP": "New Providence",
|
|
"NS": "North Andros",
|
|
"RC": "Rum Cay",
|
|
"RI": "Ragged Island",
|
|
"SA": "South Andros",
|
|
"SE": "South Eleuthera",
|
|
"SO": "South Abaco",
|
|
"SS": "San Salvador",
|
|
"SW": "Spanish Wells",
|
|
"WG": "West Grand Bahama"
|
|
}
|
|
}
|