Update list of subdivision codes

To update the list of subdivisions, I decided to use the iso-codes [1]
instead of GeoNames [2] as it seems like that one is more often updated.

This commit will also create a Bash script to update that list in the
future.

[1]: https://salsa.debian.org/iso-codes-team/iso-codes
[2]: http://www.geonames.org/

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
This commit is contained in:
Henrique Moody 2019-05-26 16:02:28 +02:00
parent f580e187d0
commit 8b8f7db713
No known key found for this signature in database
GPG key ID: 221E9281655813A6
254 changed files with 2195 additions and 2435 deletions

View file

@ -51,5 +51,48 @@ update_country_codes()
mv "${temporary_filename}" "${country_rule_filename}"
}
rule_from_country_code()
{
local country_code=${1,,}
echo "${LIBRARY_DIRECTORY}/Rules/SubdivisionCode/${country_code^}SubdivisionCode.php"
}
update_subdivision_codes()
{
local -r iso_3166_2_filename="${REPOSITORY_DIRECTORY}/data/iso_3166-2.json"
local -r iso_3166_2_count=$(grep --word-regexp "code" "${iso_3166_2_filename}" | wc --lines)
local -r temporary_filename=$(mktemp)
local last_country_code=""
local last_country_rule=""
echo "Updating subdivision codes using ISO 3166-2"
for index in $(seq 0 $[iso_3166_2_count - 1]); do
local json=$(jq ".[][${index}]" < "${iso_3166_2_filename}")
local code=$(jq -r ".code" <<< "${json}")
local name=$(jq -r ".name" <<< "${json}")
local current_country_code=$(cut --delimiter "-" --fields 1 <<< "${code}")
local current_country_rule=$(rule_from_country_code ${current_country_code})
if [[ ${last_country_code} != ${current_country_code} ]] && [[ ! -z "${last_country_code}" ]]; then
sed -n '/^ \]/,/^}/p' "${last_country_rule}" >> "${temporary_filename}"
cat "${temporary_filename}" > "${last_country_rule}"
fi
if [[ ${last_country_code} != ${current_country_code} ]]; then
echo "- Updating ${current_country_code}"
sed -n '/^</,/public \$haystack = \[/p' "${current_country_rule}" > "${temporary_filename}"
fi
echo " '$(cut --delimiter "-" --fields 2 <<< ${code})', // ${name}" >> "${temporary_filename}"
last_country_code=${current_country_code}
last_country_rule=${current_country_rule}
done
}
clone_repository
update_country_codes
update_subdivision_codes

View file

@ -11,265 +11,7 @@ v::subdivisionCode('BR')->validate('SP'); // true
v::subdivisionCode('US')->validate('CA'); // true
```
This rule is case sensitive.
## Available country codes
- `AD`: Andorra
- `AE`: United Arab Emirates
- `AF`: Afghanistan
- `AG`: Antigua and Barbuda
- `AI`: Anguilla
- `AL`: Albania
- `AM`: Armenia
- `AN`: AN.html
- `AO`: Angola
- `AQ`: Antarctica
- `AR`: Argentina
- `AS`: American Samoa
- `AT`: Austria
- `AU`: Australia
- `AW`: Aruba
- `AX`: Åland
- `AZ`: Azerbaijan
- `BA`: Bosnia and Herzegovina
- `BB`: Barbados
- `BD`: Bangladesh
- `BE`: Belgium
- `BF`: Burkina Faso
- `BG`: Bulgaria
- `BH`: Bahrain
- `BI`: Burundi
- `BJ`: Benin
- `BL`: Saint Barthélemy
- `BM`: Bermuda
- `BN`: Brunei
- `BO`: Bolivia
- `BQ`: Bonaire
- `BR`: Brazil
- `BS`: Bahamas
- `BT`: Bhutan
- `BV`: Bouvet Island
- `BW`: Botswana
- `BY`: Belarus
- `BZ`: Belize
- `CA`: Canada
- `CC`: Cocos [Keeling] Islands
- `CD`: Democratic Republic of the Congo
- `CF`: Central African Republic
- `CG`: Republic of the Congo
- `CH`: Switzerland
- `CI`: Ivory Coast
- `CK`: Cook Islands
- `CL`: Chile
- `CM`: Cameroon
- `CN`: China
- `CO`: Colombia
- `CR`: Costa Rica
- `CS`: CS.html
- `CU`: Cuba
- `CV`: Cape Verde
- `CW`: Curacao
- `CX`: Christmas Island
- `CY`: Cyprus
- `CZ`: Czech Republic
- `DE`: Germany
- `DJ`: Djibouti
- `DK`: Denmark
- `DM`: Dominica
- `DO`: Dominican Republic
- `DZ`: Algeria
- `EC`: Ecuador
- `EE`: Estonia
- `EG`: Egypt
- `EH`: Western Sahara
- `ER`: Eritrea
- `ES`: Spain
- `ET`: Ethiopia
- `FI`: Finland
- `FJ`: Fiji
- `FK`: Falkland Islands
- `FM`: Micronesia
- `FO`: Faroe Islands
- `FR`: France
- `GA`: Gabon
- `GB`: United Kingdom
- `GD`: Grenada
- `GE`: Georgia
- `GF`: French Guiana
- `GG`: Guernsey
- `GH`: Ghana
- `GI`: Gibraltar
- `GL`: Greenland
- `GM`: Gambia
- `GN`: Guinea
- `GP`: Guadeloupe
- `GQ`: Equatorial Guinea
- `GR`: Greece
- `GS`: South Georgia and the South Sandwich Islands
- `GT`: Guatemala
- `GU`: Guam
- `GW`: Guinea-Bissau
- `GY`: Guyana
- `HK`: Hong Kong
- `HM`: Heard Island and McDonald Islands
- `HN`: Honduras
- `HR`: Croatia
- `HT`: Haiti
- `HU`: Hungary
- `ID`: Indonesia
- `IE`: Ireland
- `IL`: Israel
- `IM`: Isle of Man
- `IN`: India
- `IO`: British Indian Ocean Territory
- `IQ`: Iraq
- `IR`: Iran
- `IS`: Iceland
- `IT`: Italy
- `JE`: Jersey
- `JM`: Jamaica
- `JO`: Jordan
- `JP`: Japan
- `KE`: Kenya
- `KG`: Kyrgyzstan
- `KH`: Cambodia
- `KI`: Kiribati
- `KM`: Comoros
- `KN`: Saint Kitts and Nevis
- `KP`: North Korea
- `KR`: South Korea
- `KW`: Kuwait
- `KY`: Cayman Islands
- `KZ`: Kazakhstan
- `LA`: Laos
- `LB`: Lebanon
- `LC`: Saint Lucia
- `LI`: Liechtenstein
- `LK`: Sri Lanka
- `LR`: Liberia
- `LS`: Lesotho
- `LT`: Lithuania
- `LU`: Luxembourg
- `LV`: Latvia
- `LY`: Libya
- `MA`: Morocco
- `MC`: Monaco
- `MD`: Moldova
- `ME`: Montenegro
- `MF`: Saint Martin
- `MG`: Madagascar
- `MH`: Marshall Islands
- `MK`: Macedonia
- `ML`: Mali
- `MM`: Myanmar [Burma]
- `MN`: Mongolia
- `MO`: Macao
- `MP`: Northern Mariana Islands
- `MQ`: Martinique
- `MR`: Mauritania
- `MS`: Montserrat
- `MT`: Malta
- `MU`: Mauritius
- `MV`: Maldives
- `MW`: Malawi
- `MX`: Mexico
- `MY`: Malaysia
- `MZ`: Mozambique
- `NA`: Namibia
- `NC`: New Caledonia
- `NE`: Niger
- `NF`: Norfolk Island
- `NG`: Nigeria
- `NI`: Nicaragua
- `NL`: Netherlands
- `NO`: Norway
- `NP`: Nepal
- `NR`: Nauru
- `NU`: Niue
- `NZ`: New Zealand
- `OM`: Oman
- `PA`: Panama
- `PE`: Peru
- `PF`: French Polynesia
- `PG`: Papua New Guinea
- `PH`: Philippines
- `PK`: Pakistan
- `PL`: Poland
- `PM`: Saint Pierre and Miquelon
- `PN`: Pitcairn Islands
- `PR`: Puerto Rico
- `PS`: Palestine
- `PT`: Portugal
- `PW`: Palau
- `PY`: Paraguay
- `QA`: Qatar
- `RE`: Réunion
- `RO`: Romania
- `RS`: Serbia
- `RU`: Russia
- `RW`: Rwanda
- `SA`: Saudi Arabia
- `SB`: Solomon Islands
- `SC`: Seychelles
- `SD`: Sudan
- `SE`: Sweden
- `SG`: Singapore
- `SH`: Saint Helena
- `SI`: Slovenia
- `SJ`: Svalbard and Jan Mayen
- `SK`: Slovakia
- `SL`: Sierra Leone
- `SM`: San Marino
- `SN`: Senegal
- `SO`: Somalia
- `SR`: Suriname
- `SS`: South Sudan
- `ST`: São Tomé and Príncipe
- `SV`: El Salvador
- `SX`: Sint Maarten
- `SY`: Syria
- `SZ`: Swaziland
- `TC`: Turks and Caicos Islands
- `TD`: Chad
- `TF`: French Southern Territories
- `TG`: Togo
- `TH`: Thailand
- `TJ`: Tajikistan
- `TK`: Tokelau
- `TL`: East Timor
- `TM`: Turkmenistan
- `TN`: Tunisia
- `TO`: Tonga
- `TR`: Turkey
- `TT`: Trinidad and Tobago
- `TV`: Tuvalu
- `TW`: Taiwan
- `TZ`: Tanzania
- `UA`: Ukraine
- `UG`: Uganda
- `UM`: U.S. Minor Outlying Islands
- `US`: United States
- `UY`: Uruguay
- `UZ`: Uzbekistan
- `VA`: Vatican City
- `VC`: Saint Vincent and the Grenadines
- `VE`: Venezuela
- `VG`: British Virgin Islands
- `VI`: U.S. Virgin Islands
- `VN`: Vietnam
- `VU`: Vanuatu
- `WF`: Wallis and Futuna
- `WS`: Samoa
- `XK`: Kosovo
- `YE`: Yemen
- `YT`: Mayotte
- `ZA`: South Africa
- `ZM`: Zambia
- `ZW`: Zimbabwe
All data was extrated from [GeoNames][] which is licensed under a
[Creative Commons Attribution 3.0 License][].
This rules uses data from [iso-codes][].
***
See also:
@ -280,7 +22,6 @@ See also:
* [KeyValue](KeyValue.md)
* [Tld](Tld.md)
[Creative Commons Attribution 3.0 License]: http://creativecommons.org/licenses/by/3.0 "Creative Commons Attribution 3.0 License"
[GeoNames]: http://www.geonames.org "GetNames"
[iso-codes]: https://salsa.debian.org/iso-codes-team/iso-codes
[ISO 3166-1 alpha-2]: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 "ISO 3166-1 alpha-2"
[ISO 3166-2]: http://en.wikipedia.org/wiki/ISO_3166-2 "ISO 3166-2"

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: AD
*
* @link http://www.geonames.org/AD/administrative-division-andorra.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class AdSubdivisionCode extends AbstractSearcher
{
@ -27,7 +27,7 @@ class AdSubdivisionCode extends AbstractSearcher
'03', // Encamp
'04', // La Massana
'05', // Ordino
'06', // Sant Julia de Lòria
'06', // Sant Julià de Lòria
'07', // Andorra la Vella
'08', // Escaldes-Engordany
];

View file

@ -18,17 +18,17 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: AE
*
* @link http://www.geonames.org/AE/administrative-division-united-arab-emirates.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class AeSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'AJ', // 'Ajman
'AZ', // Abu Zaby
'AJ', // 'Ajmān
'AZ', // Abū Ȥaby [Abu Dhabi]
'DU', // Dubayy
'FU', // Al Fujayrah
'RK', // R'as al Khaymah
'SH', // Ash Shariqah
'RK', // Ras al Khaymah
'SH', // Ash Shāriqah
'UQ', // Umm al Qaywayn
];

View file

@ -18,45 +18,45 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: AF
*
* @link http://www.geonames.org/AF/administrative-division-afghanistan.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class AfSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'BAL', // Balkh province
'BAM', // Bamian province
'BDG', // Badghis province
'BDS', // Badakhshan province
'BGL', // Baghlan province
'BAL', // Balkh
'BAM', // Bāmyān
'BDG', // Bādghīs
'BDS', // Badakhshān
'BGL', // Baghlān
'DAY', // Dāykundī
'FRA', // Farah province
'FYB', // Faryab province
'GHA', // Ghazni province
'GHO', // Ghowr province
'HEL', // Helmand province
'HER', // Herat province
'JOW', // Jowzjan province
'KAB', // Kabul province
'KAN', // Kandahar province
'KAP', // Kapisa province
'KDZ', // Kondoz province
'KHO', // Khost province
'KNR', // Konar province
'LAG', // Laghman province
'LOW', // Lowgar province
'NAN', // Nangrahar province
'NIM', // Nimruz province
'NUR', // Nurestan province
'ORU', // Oruzgan province
'PAN', // Panjshir
'PAR', // Parwan province
'PIA', // Paktia province
'PKA', // Paktika province
'SAM', // Samangan province
'SAR', // Sar-e Pol province
'TAK', // Takhar province
'WAR', // Wardak province
'ZAB', // Zabol province
'FRA', // Farāh
'FYB', // Fāryāb
'GHA', // Ghaznī
'GHO', // Ghōr
'HEL', // Helmand
'HER', // Herāt
'JOW', // Jowzjān
'KAB', // Kābul
'KAN', // Kandahār
'KAP', // Kāpīsā
'KDZ', // Kunduz
'KHO', // Khōst
'KNR', // Kunar
'LAG', // Laghmān
'LOG', // Lōgar
'NAN', // Nangarhār
'NIM', // Nīmrōz
'NUR', // Nūristān
'PAN', // Panjshayr
'PAR', // Parwān
'PIA', // Paktiyā
'PKA', // Paktīkā
'SAM', // Samangān
'SAR', // Sar-e Pul
'TAK', // Takhār
'URU', // Uruzgān
'WAR', // Wardak
'ZAB', // Zābul
];
public $compareIdentical = true;

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: AG
*
* @link http://www.geonames.org/AG/administrative-division-antigua-and-barbuda.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class AgSubdivisionCode extends AbstractSearcher
{

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: AI
*
* @link http://www.geonames.org/AI/administrative-division-anguilla.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class AiSubdivisionCode extends AbstractSearcher
{

View file

@ -18,59 +18,59 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: AL
*
* @link http://www.geonames.org/AL/administrative-division-albania.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class AlSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'01', // Berat
'02', // Durres
'02', // Durrës
'03', // Elbasan
'04', // Fier
'05', // Gjirokaster
'06', // Korce
'07', // Kukes
'08', // Lezhe
'09', // Diber
'10', // Shkoder
'11', // Tirane
'12', // Vlore
'05', // Gjirokastër
'06', // Korçë
'07', // Kukës
'08', // Lezhë
'09', // Dibër
'10', // Shkodër
'11', // Tiranë
'12', // Vlorë
'BR', // Berat
'BU', // Bulqize
'DI', // Diber
'DL', // Delvine
'DR', // Durres
'BU', // Bulqizë
'DI', // Dibër
'DL', // Delvinë
'DR', // Durrës
'DV', // Devoll
'EL', // Elbasan
'ER', // Kolonje
'ER', // Kolonjë
'FR', // Fier
'GJ', // Gjirokaster
'GJ', // Gjirokastër
'GR', // Gramsh
'HA', // Has
'KA', // Kavaje
'KA', // Kavajë
'KB', // Kurbin
'KC', // Kucove
'KO', // Korce
'KR', // Kruje
'KU', // Kukes
'KC', // Kuçovë
'KO', // Korçë
'KR', // Krujë
'KU', // Kukës
'LB', // Librazhd
'LE', // Lezhe
'LU', // Lushnje
'MK', // Mallakaster
'MM', // Malesi e Madhe
'MR', // Mirdite
'LE', // Lezhë
'LU', // Lushnjë
'MK', // Mallakastër
'MM', // Malësi e Madhe
'MR', // Mirditë
'MT', // Mat
'PG', // Pogradec
'PQ', // Peqin
'PR', // Permet
'PU', // Puke
'SH', // Shkoder
'PR', // Përmet
'PU', // Pukë
'SH', // Shkodër
'SK', // Skrapar
'SR', // Sarande
'TE', // Tepelene
'TP', // Tropoje
'TR', // Tirane
'VL', // Vlore
'SR', // Sarandë
'TE', // Tepelenë
'TP', // Tropojë
'TR', // Tiranë
'VL', // Vlorë
];
public $compareIdentical = true;

View file

@ -18,22 +18,22 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: AM
*
* @link http://www.geonames.org/AM/administrative-division-armenia.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class AmSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'AG', // Aragatsotn
'AG', // Aragacotn
'AR', // Ararat
'AV', // Armavir
'ER', // Yerevan
'GR', // Geghark'unik'
'ER', // Erevan
'GR', // Gegarkunik'
'KT', // Kotayk'
'LO', // Lorri
'SH', // Shirak
'LO', // Lory
'SH', // Sirak
'SU', // Syunik'
'TV', // Tavush
'VD', // Vayots' Dzor
'TV', // Tavus
'VD', // Vayoc Jor
];
public $compareIdentical = true;

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: AN
*
* @link http://www.geonames.org/AN/administrative-division-netherlands-antilles.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class AnSubdivisionCode extends AbstractSearcher
{

View file

@ -18,28 +18,28 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: AO
*
* @link http://www.geonames.org/AO/administrative-division-angola.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class AoSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'BGO', // Bengo
'BGU', // Benguela province
'BIE', // Bie
'BGU', // Benguela
'BIE', // Bié
'CAB', // Cabinda
'CCU', // Cuando-Cubango
'CNN', // Cunene
'CNO', // Cuanza Norte
'CUS', // Cuanza Sul
'HUA', // Huambo province
'HUI', // Huila province
'HUA', // Huambo
'HUI', // Huíla
'LNO', // Lunda Norte
'LSU', // Lunda Sul
'LUA', // Luanda
'MAL', // Malange
'MOX', // Moxico
'NAM', // Namibe
'UIG', // Uige
'UIG', // Uíge
'ZAI', // Zaire
];

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: AQ
*
* @link http://www.geonames.org/AQ/administrative-division-antarctica.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class AqSubdivisionCode extends AbstractSearcher
{

View file

@ -18,17 +18,16 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: AR
*
* @link http://www.geonames.org/AR/administrative-division-argentina.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class ArSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'A', // Salta
'B', // Buenos Aires Province
'B', // Buenos Aires
'C', // Ciudad Autónoma de Buenos Aires
'D', // San Luis
'E', // Entre Rios
'F', // La Rioja
'G', // Santiago del Estero
'H', // Chaco
'J', // San Juan

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: AS
*
* @link http://www.geonames.org/AS/administrative-division-american-samoa.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class AsSubdivisionCode extends AbstractSearcher
{

View file

@ -18,15 +18,15 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: AT
*
* @link http://www.geonames.org/AT/administrative-division-austria.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class AtSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'1', // Burgenland
'2', // Karnten
'3', // Niederosterreich
'4', // Oberosterreich
'2', // Kärnten
'3', // Niederösterreich
'4', // Oberösterreich
'5', // Salzburg
'6', // Steiermark
'7', // Tirol

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: AU
*
* @link http://www.geonames.org/AU/administrative-division-australia.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class AuSubdivisionCode extends AbstractSearcher
{

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: AW
*
* @link http://www.geonames.org/AW/administrative-division-aruba.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class AwSubdivisionCode extends AbstractSearcher
{

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: AX
*
* @link http://www.geonames.org/AX/administrative-division-aland.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class AxSubdivisionCode extends AbstractSearcher
{

View file

@ -18,90 +18,89 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: AZ
*
* @link http://www.geonames.org/AZ/administrative-division-azerbaijan.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class AzSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'AB', // Şirvan
'ABS', // Abseron
'AGA', // Agstafa
'AGC', // AgcabAdi
'AGM', // Agdam
'AGS', // Agdas
'AGU', // Agsu
'ABS', // Abşeron
'AGA', // Ağstafa
'AGC', // Ağcabədi
'AGM', // Ağdam
'AGS', // Ağdaş
'AGU', // Ağsu
'AST', // Astara
'BA', // Baki
'BAL', // BalakAn
'BAR', // Barda
'BEY', // Beylaqan
'BIL', // Bilasuvar
'CAB', // Cabrayil
'CAL', // Calilabab
'DAS', // Daskasan
'DAV', // Şabran
'FUZ', // Fuzuli
'GA', // Ganca
'GAD', // Gadabay
'BA', // Bakı
'BAB', // Babək
'BAL', // Balakən
'BAR', // Bərdə
'BEY', // Beyləqan
'BIL', // Biləsuvar
'CAB', // Cəbrayıl
'CAL', // Cəlilabab
'CUL', // Culfa
'DAS', // Daşkəsən
'FUZ', // Füzuli
'GA', // Gəncə
'GAD', // Gədəbəy
'GOR', // Goranboy
'GOY', // Goycay
'HAC', // Haciqabul
'IMI', // Imisli
'ISM', // Ismayilli
'KAL', // Kalbacar
'KAN', // Kəngərli
'KUR', // Kurdamir
'LA', // Lankaran
'LAC', // Lacin
'LAN', // Lankaran Sahari
'GOY', // Göyçay
'GYG', // Göygöl
'HAC', // Hacıqabul
'IMI', // İmişli
'ISM', // İsmayıllı
'KAL', // Kəlbəcər
'KAN', // Kǝngǝrli
'KUR', // Kürdəmir
'LA', // Lənkəran
'LAC', // Laçın
'LAN', // Lənkəran
'LER', // Lerik
'MAS', // Masalli
'MAS', // Masallı
'MI', // Mingəçevir
'NA', // Naftalan
'NEF', // Neftcala
'NV', // Naxçivan
'NX', // Naxcivan
'OGU', // Oguz
'QAB', // Qabala
'NEF', // Neftçala
'NV', // Naxçıvan
'NX', // Naxçıvan
'OGU', // Oğuz
'ORD', // Ordubad
'QAB', // Qəbələ
'QAX', // Qax
'QAZ', // Qazax
'QBA', // Quba
'QBI', // Qubadli
'QBI', // Qubadlı
'QOB', // Qobustan
'QUS', // Qusar
'SA', // Saki
'SA', // Şəki
'SAB', // Sabirabad
'SAK', // Saki Sahari
'SAD', // Sədərək
'SAH', // Şahbuz
'SAK', // Şəki
'SAL', // Salyan
'SAT', // Saatli
'SIY', // Siyazan
'SKR', // Samkir
'SM', // Sumqayit
'SMI', // Samaxi
'SAR', // Şərur
'SAT', // Saatlı
'SBN', // Şabran
'SIY', // Siyəzən
'SKR', // Şəmkir
'SM', // Sumqayıt
'SMI', // Şamaxı
'SMX', // Samux
'SS', // Susa
'SUS', // Susa Sahari
'TAR', // Tartar
'SR', // Şirvan
'SUS', // Şuşa
'TAR', // Tərtər
'TOV', // Tovuz
'UCA', // Ucar
'XA', // Xankandi
'XAC', // Xacmaz
'XAN', // Göygöl
'XCI', // Xocali
'XIZ', // Xizi
'XVD', // Xocavand
'YAR', // Yardimli
'YE', // Yevlax Sahari
'XA', // Xankəndi
'XAC', // Xaçmaz
'XCI', // Xocalı
'XIZ', // Xızı
'XVD', // Xocavənd
'YAR', // Yardımlı
'YE', // Yevlax
'YEV', // Yevlax
'ZAN', // Zangilan
'ZAN', // Zəngilan
'ZAQ', // Zaqatala
'ZAR', // Zardab
'BAB', // Babek
'CUL', // Culfa
'ORD', // Ordubad
'SAD', // Sadarak
'SAH', // Sahbuz
'SAR', // Sarur
'ZAR', // Zərdab
];
public $compareIdentical = true;

View file

@ -18,24 +18,24 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: BA
*
* @link http://www.geonames.org/BA/administrative-division-bosnia-and-herzegovina.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class BaSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'BIH', // Federacija Bosna i Hercegovina
'BRC', // Brcko District
'SRP', // Republika Srpska
'01', // Unsko-sanski kanton
'02', // Posavski kanton
'03', // Tuzlanski kanton
'04', // Zeničko-dobojski kanton
'05', // Bosansko-podrinjski kanton
'06', // Srednjobosanski kantonn
'06', // Srednjobosanski kanton
'07', // Hercegovačko-neretvanski kanton
'08', // Zapadnohercegovački kanton
'09', // Kanton Sarajevo
'10', // Kanton br. 10 (Livanjski kanton)
'BIH', // Federacija Bosne i Hercegovine
'BRC', // Brčko distrikt
'SRP', // Republika Srpska
];
public $compareIdentical = true;

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: BB
*
* @link http://www.geonames.org/BB/administrative-division-barbados.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class BbSubdivisionCode extends AbstractSearcher
{

View file

@ -18,11 +18,75 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: BD
*
* @link http://www.geonames.org/BD/administrative-division-bangladesh.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class BdSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'01', // Bandarban
'02', // Barguna
'03', // Bogra
'04', // Brahmanbaria
'05', // Bagerhat
'06', // Barisal
'07', // Bhola
'08', // Comilla
'09', // Chandpur
'10', // Chittagong
'11', // Cox's Bazar
'12', // Chuadanga
'13', // Dhaka
'14', // Dinajpur
'15', // Faridpur
'16', // Feni
'17', // Gopalganj
'18', // Gazipur
'19', // Gaibandha
'20', // Habiganj
'21', // Jamalpur
'22', // Jessore
'23', // Jhenaidah
'24', // Jaipurhat
'25', // Jhalakati
'26', // Kishorganj
'27', // Khulna
'28', // Kurigram
'29', // Khagrachari
'30', // Kushtia
'31', // Lakshmipur
'32', // Lalmonirhat
'33', // Manikganj
'34', // Mymensingh
'35', // Munshiganj
'36', // Madaripur
'37', // Magura
'38', // Moulvibazar
'39', // Meherpur
'40', // Narayanganj
'41', // Netrakona
'42', // Narsingdi
'43', // Narail
'44', // Natore
'45', // Nawabganj
'46', // Nilphamari
'47', // Noakhali
'48', // Naogaon
'49', // Pabna
'50', // Pirojpur
'51', // Patuakhali
'52', // Panchagarh
'53', // Rajbari
'54', // Rajshahi
'55', // Rangpur
'56', // Rangamati
'57', // Sherpur
'58', // Satkhira
'59', // Sirajganj
'60', // Sylhet
'61', // Sunamganj
'62', // Shariatpur
'63', // Tangail
'64', // Thakurgaon
'A', // Barisal
'B', // Chittagong
'C', // Dhaka
@ -30,70 +94,6 @@ class BdSubdivisionCode extends AbstractSearcher
'E', // Rajshahi
'F', // Rangpur
'G', // Sylhet
'01', // Bandarban zila
'02', // Barguna zila
'03', // Bogra zila
'04', // Brahmanbaria zila
'05', // Bagerhat zila
'06', // Barisal zila
'07', // Bhola zila
'08', // Comilla zila
'09', // Chandpur zila
'10', // Chittagong zila
'11', // Cox's Bazar zila
'12', // Chuadanga zila
'13', // Dhaka zila
'14', // Dinajpur zila
'15', // Faridpur zila
'16', // Feni zila
'17', // Gopalganj zila
'18', // Gazipur zila
'19', // Gaibandha zila
'20', // Habiganj zila
'21', // Jamalpur zila
'22', // Jessore zila
'23', // Jhenaidah zila
'24', // Jaipurhat zila
'25', // Jhalakati zila
'26', // Kishoreganj zila
'27', // Khulna zila
'28', // Kurigram zila
'29', // Khagrachari zila
'30', // Kushtia zila
'31', // Lakshmipur zila
'32', // Lalmonirhat zila
'33', // Manikganj zila
'34', // Mymensingh zila
'35', // Munshiganj zila
'36', // Madaripur zila
'37', // Magura zila
'38', // Moulvibazar zila
'39', // Meherpur zila
'40', // Narayanganj zila
'41', // Netrakona zila
'42', // Narsingdi zila
'43', // Narail zila
'44', // Natore zila
'45', // Nawabganj zila
'46', // Nilphamari zila
'47', // Noakhali zila
'48', // Naogaon zila
'49', // Pabna zila
'50', // Pirojpur zila
'51', // Patuakhali zila
'52', // Panchagarh zila
'53', // Rajbari zila
'54', // Rajshahi zila
'55', // Rangpur zila
'56', // Rangamati zila
'57', // Sherpur zila
'58', // Satkhira zila
'59', // Sirajganj zila
'60', // Sylhet zila
'61', // Sunamganj zila
'62', // Shariatpur zila
'63', // Tangail zila
'64', // Thakurgaon zila
];
public $compareIdentical = true;

View file

@ -18,23 +18,22 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: BE
*
* @link http://www.geonames.org/BE/administrative-division-belgium.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class BeSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'BRU', // Brussels
'VLG', // Flanders
'WAL', // Wallonia
'BRU', // Brussels
'BRU', // Bruxelles-Capitale, Région de;Brussels Hoofdstedelijk Gewest
'VAN', // Antwerpen
'VBR', // Vlaams Brabant
'VBR', // Vlaams-Brabant
'VLG', // Vlaams Gewest
'VLI', // Limburg
'VOV', // Oost-Vlaanderen
'VWV', // West-Vlaanderen
'WBR', // Brabant Wallon
'WAL', // wallonne, Région
'WBR', // Brabant wallon
'WHT', // Hainaut
'WLG', // Liege
'WLG', // Liège
'WLX', // Luxembourg
'WNA', // Namur
];

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: BF
*
* @link http://www.geonames.org/BF/administrative-division-burkina-faso.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class BfSubdivisionCode extends AbstractSearcher
{
@ -36,51 +36,51 @@ class BfSubdivisionCode extends AbstractSearcher
'11', // Plateau-Central
'12', // Sahel
'13', // Sud-Ouest
'BAL', // Bale
'BAL', // Balé
'BAM', // Bam
'BAN', // Banwa
'BAZ', // Bazega
'BAZ', // Bazèga
'BGR', // Bougouriba
'BLG', // Boulgou
'BLK', // Boulkiemde
'COM', // Comoe
'BLK', // Boulkiemdé
'COM', // Comoé
'GAN', // Ganzourgou
'GNA', // Gnagna
'GOU', // Gourma
'HOU', // Houet
'IOB', // Ioba
'KAD', // Kadiogo
'KEN', // Kenedougou
'KEN', // Kénédougou
'KMD', // Komondjari
'KMP', // Kompienga
'KOP', // Koulpelogo
'KOP', // Koulpélogo
'KOS', // Kossi
'KOT', // Kouritenga
'KOW', // Kourweogo
'LER', // Leraba
'KOW', // Kourwéogo
'LER', // Léraba
'LOR', // Loroum
'MOU', // Mouhoun
'NAM', // Namentenga
'NAO', // Nahouri
'NAO', // Naouri
'NAY', // Nayala
'NOU', // Noumbiel
'OUB', // Oubritenga
'OUD', // Oudalan
'PAS', // Passore
'PAS', // Passoré
'PON', // Poni
'SEN', // Seno
'SEN', // Séno
'SIS', // Sissili
'SMT', // Sanmatenga
'SNG', // Sanguie
'SNG', // Sanguié
'SOM', // Soum
'SOR', // Sourou
'TAP', // Tapoa
'TUI', // Tuy
'TUI', // Tui
'YAG', // Yagha
'YAT', // Yatenga
'ZIR', // Ziro
'ZON', // Zondoma
'ZOU', // Zoundweogo
'ZOU', // Zoundwéogo
];
public $compareIdentical = true;

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: BG
*
* @link http://www.geonames.org/BG/administrative-division-bulgaria.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class BgSubdivisionCode extends AbstractSearcher
{
@ -26,12 +26,12 @@ class BgSubdivisionCode extends AbstractSearcher
'01', // Blagoevgrad
'02', // Burgas
'03', // Varna
'04', // Veliko Turnovo
'04', // Veliko Tarnovo
'05', // Vidin
'06', // Vratsa
'07', // Gabrovo
'08', // Dobrich
'09', // Kurdzhali
'09', // Kardzhali
'10', // Kyustendil
'11', // Lovech
'12', // Montana
@ -44,11 +44,11 @@ class BgSubdivisionCode extends AbstractSearcher
'19', // Silistra
'20', // Sliven
'21', // Smolyan
'22', // Sofia Region
'22', // Sofia-Grad
'23', // Sofia
'24', // Stara Zagora
'25', // Turgovishte
'26', // Khaskovo
'25', // Targovishte
'26', // Haskovo
'27', // Shumen
'28', // Yambol
];

View file

@ -18,16 +18,16 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: BH
*
* @link http://www.geonames.org/BH/administrative-division-bahrain.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class BhSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'13', // Capital
'14', // Southern
'15', // Muharraq
'16', // Central
'17', // Northern
'13', // Al Manāmah (Al Āşimah)
'14', // Al Janūbīyah
'15', // Al Muḩarraq
'16', // Al Wusţá
'17', // Ash Shamālīyah
];
public $compareIdentical = true;

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: BI
*
* @link http://www.geonames.org/BI/administrative-division-burundi.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class BiSubdivisionCode extends AbstractSearcher
{
@ -36,7 +36,6 @@ class BiSubdivisionCode extends AbstractSearcher
'MA', // Makamba
'MU', // Muramvya
'MW', // Mwaro
'MY', // Muyinga
'NG', // Ngozi
'RT', // Rutana
'RY', // Ruyigi

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: BJ
*
* @link http://www.geonames.org/BJ/administrative-division-benin.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class BjSubdivisionCode extends AbstractSearcher
{
@ -32,7 +32,7 @@ class BjSubdivisionCode extends AbstractSearcher
'KO', // Kouffo
'LI', // Littoral
'MO', // Mono
'OU', // Oueme
'OU', // Ouémé
'PL', // Plateau
'ZO', // Zou
];

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: BL
*
* @link http://www.geonames.org/BL/administrative-division-saint-barthelemy.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class BlSubdivisionCode extends AbstractSearcher
{

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: BM
*
* @link http://www.geonames.org/BM/administrative-division-bermuda.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class BmSubdivisionCode extends AbstractSearcher
{

View file

@ -18,13 +18,13 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: BN
*
* @link http://www.geonames.org/BN/administrative-division-brunei.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class BnSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'BE', // Belait
'BM', // Brunei and Muara
'BM', // Brunei-Muara
'TE', // Temburong
'TU', // Tutong
];

View file

@ -18,20 +18,20 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: BO
*
* @link http://www.geonames.org/BO/administrative-division-bolivia.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class BoSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'B', // Departmento Beni
'C', // Departmento Cochabamba
'H', // Departmento Chuquisaca
'L', // Departmento La Paz
'N', // Departmento Pando
'O', // Departmento Oruro
'P', // Departmento Potosi
'S', // Departmento Santa Cruz
'T', // Departmento Tarija
'B', // El Beni
'C', // Cochabamba
'H', // Chuquisaca
'L', // La Paz
'N', // Pando
'O', // Oruro
'P', // Potosí
'S', // Santa Cruz
'T', // Tarija
];
public $compareIdentical = true;

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: BQ
*
* @link http://www.geonames.org/BQ/administrative-division-bonaire.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class BqSubdivisionCode extends AbstractSearcher
{

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: BR
*
* @link http://www.geonames.org/BR/administrative-division-brazil.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class BrSubdivisionCode extends AbstractSearcher
{
@ -26,29 +26,30 @@ class BrSubdivisionCode extends AbstractSearcher
'AC', // Acre
'AL', // Alagoas
'AM', // Amazonas
'AP', // Amapa
'AP', // Amapá
'BA', // Bahia
'CE', // Ceara
'CE', // Ceará
'DF', // Distrito Federal
'ES', // Espirito Santo
'GO', // Goias
'MA', // Maranhao
'ES', // Espírito Santo
'FN', // Fernando de Noronha
'GO', // Goiás
'MA', // Maranhão
'MG', // Minas Gerais
'MS', // Mato Grosso do Sul
'MT', // Mato Grosso
'PA', // Para
'PB', // Paraiba
'PA', // Pará
'PB', // Paraíba
'PE', // Pernambuco
'PI', // Piaui
'PR', // Parana
'PI', // Piauí
'PR', // Paraná
'RJ', // Rio de Janeiro
'RN', // Rio Grande do Norte
'RO', // Rondonia
'RO', // Rondônia
'RR', // Roraima
'RS', // Rio Grande do Sul
'SC', // Santa Catarina
'SE', // Sergipe
'SP', // Sao Paulo
'SP', // São Paulo
'TO', // Tocantins
];

View file

@ -18,13 +18,13 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: BS
*
* @link http://www.geonames.org/BS/administrative-division-bahamas.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class BsSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'AK', // Acklins Islands
'BI', // Bimini and Cat Cay
'AK', // Acklins
'BI', // Bimini
'BP', // Black Point
'BY', // Berry Islands
'CE', // Central Eleuthera
@ -45,7 +45,6 @@ class BsSubdivisionCode extends AbstractSearcher
'MI', // Moore's Island
'NE', // North Eleuthera
'NO', // North Abaco
'NP', // New Providence
'NS', // North Andros
'RC', // Rum Cay
'RI', // Ragged Island
@ -55,14 +54,6 @@ class BsSubdivisionCode extends AbstractSearcher
'SS', // San Salvador
'SW', // Spanish Wells
'WG', // West Grand Bahama
'CO', // Governors Harbour
'FC', // Fresh Creek
'GT', // Green Turtle Cay
'HR', // High Rock District
'KE', // Kemps Bay District
'MH', // Marsh Harbour District
'RS', // Rock Sound
'SP', // Sandy Point
];
public $compareIdentical = true;

View file

@ -18,15 +18,15 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: BT
*
* @link http://www.geonames.org/BT/administrative-division-bhutan.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class BtSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'11', // Paro
'12', // Chukha
'13', // Haa
'14', // Samtse
'12', // Chhukha
'13', // Ha
'14', // Samtee
'15', // Thimphu
'21', // Tsirang
'22', // Dagana
@ -37,12 +37,12 @@ class BtSubdivisionCode extends AbstractSearcher
'33', // Bumthang
'34', // Zhemgang
'41', // Trashigang
'42', // Mongar
'42', // Monggar
'43', // Pemagatshel
'44', // Lhuntse
'45', // Samdrup Jongkhar
'44', // Lhuentse
'45', // Samdrup Jongkha
'GA', // Gasa
'TY', // Trashi Yangste
'TY', // Trashi Yangtse
];
public $compareIdentical = true;

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: BV
*
* @link http://www.geonames.org/BV/administrative-division-bouvet-island.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class BvSubdivisionCode extends AbstractSearcher
{

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: BW
*
* @link http://www.geonames.org/BW/administrative-division-botswana.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class BwSubdivisionCode extends AbstractSearcher
{
@ -28,9 +28,9 @@ class BwSubdivisionCode extends AbstractSearcher
'KG', // Kgalagadi
'KL', // Kgatleng
'KW', // Kweneng
'NE', // North East
'NW', // North West
'SE', // South East
'NE', // North-East
'NW', // North-West
'SE', // South-East
'SO', // Southern
];

View file

@ -18,18 +18,18 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: BY
*
* @link http://www.geonames.org/BY/administrative-division-belarus.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class BySubdivisionCode extends AbstractSearcher
{
public $haystack = [
'BR', // Brest voblast
'BR', // Brèsckaja voblasc'
'HM', // Horad Minsk
'HO', // Homyel voblast
'HR', // Hrodna voblast
'MA', // Mahilyow voblast
'MI', // Minsk voblast
'VI', // Vitsebsk voblast
'HO', // Homel'skaja voblasc'
'HR', // Hrodzenskaja voblasc'
'MA', // Mahilëuskaja voblasc'
'MI', // Minskaja voblasc'
'VI', // Vicebskaja voblasc'
];
public $compareIdentical = true;

View file

@ -18,17 +18,17 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: BZ
*
* @link http://www.geonames.org/BZ/administrative-division-belize.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class BzSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'BZ', // Belize District
'CY', // Cayo District
'CZL', // Corozal District
'OW', // Orange Walk District
'SC', // Stann Creek District
'TOL', // Toledo District
'BZ', // Belize
'CY', // Cayo
'CZL', // Corozal
'OW', // Orange Walk
'SC', // Stann Creek
'TOL', // Toledo
];
public $compareIdentical = true;

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: CA
*
* @link http://www.geonames.org/CA/administrative-division-canada.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class CaSubdivisionCode extends AbstractSearcher
{

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: CC
*
* @link http://www.geonames.org/CC/administrative-division-cocos-islands.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class CcSubdivisionCode extends AbstractSearcher
{

View file

@ -18,14 +18,14 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: CD
*
* @link http://www.geonames.org/CD/administrative-division-democratic-republic-of-the-congo.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class CdSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'BC', // Bas-Congo
'BN', // Bandundu
'EQ', // Equateur
'EQ', // Équateur
'KA', // Katanga
'KE', // Kasai-Oriental
'KN', // Kinshasa

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: CF
*
* @link http://www.geonames.org/CF/administrative-division-central-african-republic.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class CfSubdivisionCode extends AbstractSearcher
{
@ -29,15 +29,15 @@ class CfSubdivisionCode extends AbstractSearcher
'BK', // Basse-Kotto
'HK', // Haute-Kotto
'HM', // Haut-Mbomou
'HS', // Mambere-Kadeï
'KB', // Nana-Grebizi
'KG', // Kemo
'HS', // Haute-Sangha / Mambéré-Kadéï
'KB', // Gribingui
'KG', // Kémo-Gribingui
'LB', // Lobaye
'MB', // Mbomou
'MP', // Ombella-M'Poko
'NM', // Nana-Mambere
'OP', // Ouham-Pende
'SE', // Sangha-Mbaere
'MP', // Ombella-M'poko
'NM', // Nana-Mambéré
'OP', // Ouham-Pendé
'SE', // Sangha
'UK', // Ouaka
'VK', // Vakaga
];

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: CG
*
* @link http://www.geonames.org/CG/administrative-division-republic-of-the-congo.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class CgSubdivisionCode extends AbstractSearcher
{
@ -28,8 +28,7 @@ class CgSubdivisionCode extends AbstractSearcher
'13', // Sangha
'14', // Plateaux
'15', // Cuvette-Ouest
'16', // Pointe-Noire
'2', // Lekoumou
'2', // Lékoumou
'5', // Kouilou
'7', // Likouala
'8', // Cuvette

View file

@ -18,27 +18,27 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: CH
*
* @link http://www.geonames.org/CH/administrative-division-switzerland.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class ChSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'AG', // Aargau
'AI', // Appenzell Innerhoden
'AI', // Appenzell Innerrhoden
'AR', // Appenzell Ausserrhoden
'BE', // Bern
'BL', // Basel-Landschaft
'BS', // Basel-Stadt
'FR', // Fribourg
'GE', // Geneva
'GE', // Genève
'GL', // Glarus
'GR', // Graubunden
'GR', // Graubünden
'JU', // Jura
'LU', // Lucerne
'LU', // Luzern
'NE', // Neuchâtel
'NW', // Nidwalden
'OW', // Obwalden
'SG', // St. Gallen
'SG', // Sankt Gallen
'SH', // Schaffhausen
'SO', // Solothurn
'SZ', // Schwyz
@ -48,7 +48,7 @@ class ChSubdivisionCode extends AbstractSearcher
'VD', // Vaud
'VS', // Valais
'ZG', // Zug
'ZH', // Zurich
'ZH', // Zürich
];
public $compareIdentical = true;

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: CI
*
* @link http://www.geonames.org/CI/administrative-division-ivory-coast.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class CiSubdivisionCode extends AbstractSearcher
{
@ -36,7 +36,7 @@ class CiSubdivisionCode extends AbstractSearcher
'11', // Nzi-Comoé (Région)
'12', // Marahoué (Région de la)
'13', // Sud-Comoé (Région du)
'14', // Worodougou (Région du)
'14', // Worodouqou (Région du)
'15', // Sud-Bandama (Région du)
'16', // Agnébi (Région de l')
'17', // Bafing (Région du)

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: CK
*
* @link http://www.geonames.org/CK/administrative-division-cook-islands.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class CkSubdivisionCode extends AbstractSearcher
{

View file

@ -18,26 +18,26 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: CL
*
* @link http://www.geonames.org/CL/administrative-division-chile.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class ClSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'AI', // Aisen del General Carlos Ibanez del Campo (XI)
'AN', // Antofagasta (II)
'AI', // Aisén del General Carlos Ibáñez del Campo
'AN', // Antofagasta
'AP', // Arica y Parinacota
'AR', // Araucania (IX)
'AT', // Atacama (III)
'BI', // Bio-Bio (VIII)
'CO', // Coquimbo (IV)
'LI', // Libertador General Bernardo O'Higgins (VI)
'LL', // Los Lagos (X)
'AR', // Araucanía
'AT', // Atacama
'BI', // Bío-Bío
'CO', // Coquimbo
'LI', // Libertador General Bernardo O'Higgins
'LL', // Los Lagos
'LR', // Los Ríos
'MA', // Magallanes (XII)
'ML', // Maule (VII)
'RM', // Region Metropolitana (RM)
'TA', // Tarapaca (I)
'VS', // Valparaiso (V)
'MA', // Magallanes y Antártica Chilena
'ML', // Maule
'RM', // Región Metropolitana de Santiago
'TA', // Tarapacá
'VS', // Valparaíso
];
public $compareIdentical = true;

View file

@ -18,21 +18,21 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: CM
*
* @link http://www.geonames.org/CM/administrative-division-cameroon.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class CmSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'AD', // Adamawa Province (Adamaoua)
'CE', // Centre Province
'EN', // Extreme North Province (Extrême-Nord)
'ES', // East Province (Est)
'LT', // Littoral Province
'NO', // North Province (Nord)
'NW', // Northwest Province (Nord-Ouest)
'OU', // West Province (Ouest)
'SU', // South Province (Sud)
'SW', // Southwest Province (Sud-Ouest).
'AD', // Adamaoua
'CE', // Centre
'EN', // Far North
'ES', // East
'LT', // Littoral
'NO', // North
'NW', // North-West (Cameroon)
'OU', // West
'SU', // South
'SW', // South-West
];
public $compareIdentical = true;

View file

@ -18,45 +18,45 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: CN
*
* @link http://www.geonames.org/CN/administrative-division-china.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class CnSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'11', // Beijing
'12', // Tianjin
'13', // Hebei
'14', // Shanxi
'15', // Nei Mongol
'21', // Liaoning
'22', // Jilin
'23', // Heilongjiang
'31', // Shanghai
'32', // Jiangsu
'33', // Zhejiang
'34', // Anhui
'35', // Fujian
'36', // Jiangxi
'37', // Shandong
'41', // Henan
'42', // Hubei
'43', // Hunan
'44', // Guangdong
'45', // Guangxi
'46', // Hainan
'50', // Chongqìng
'51', // Sichuan
'52', // Guizhou
'53', // Yunnan
'54', // Xizang Zìzhìqu (Tibet)
'61', // Shaanxi
'62', // Gansu
'63', // Qinghai
'64', // Ningxia
'65', // Xinjiang
'71', // Taiwan
'91', // Xianggang
'92', // Aomen
'AH', // Anhui Sheng
'BJ', // Beijing Shi
'CQ', // Chongqing Shi
'FJ', // Fujian Sheng
'GD', // Guangdong Sheng
'GS', // Gansu Sheng
'GX', // Guangxi Zhuangzu Zizhiqu
'GZ', // Guizhou Sheng
'HA', // Henan Sheng
'HB', // Hubei Sheng
'HE', // Hebei Sheng
'HI', // Hainan Sheng
'HK', // Hong Kong SAR (see also separate country code entry under HK)
'HL', // Heilongjiang Sheng
'HN', // Hunan Sheng
'JL', // Jilin Sheng
'JS', // Jiangsu Sheng
'JX', // Jiangxi Sheng
'LN', // Liaoning Sheng
'MO', // Macao SAR (see also separate country code entry under MO)
'NM', // Nei Mongol Zizhiqu
'NX', // Ningxia Huizi Zizhiqu
'QH', // Qinghai Sheng
'SC', // Sichuan Sheng
'SD', // Shandong Sheng
'SH', // Shanghai Shi
'SN', // Shaanxi Sheng
'SX', // Shanxi Sheng
'TJ', // Tianjin Shi
'TW', // Taiwan Sheng (see also separate country code entry under TW)
'XJ', // Xinjiang Uygur Zizhiqu
'XZ', // Xizang Zizhiqu
'YN', // Yunnan Sheng
'ZJ', // Zhejiang Sheng
];
public $compareIdentical = true;

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: CO
*
* @link http://www.geonames.org/CO/administrative-division-colombia.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class CoSubdivisionCode extends AbstractSearcher
{
@ -26,35 +26,35 @@ class CoSubdivisionCode extends AbstractSearcher
'AMA', // Amazonas
'ANT', // Antioquia
'ARA', // Arauca
'ATL', // Atlantico
'BOL', // Bolivar
'BOY', // Boyaca
'ATL', // Atlántico
'BOL', // Bolívar
'BOY', // Boyacá
'CAL', // Caldas
'CAQ', // Caqueta
'CAQ', // Caquetá
'CAS', // Casanare
'CAU', // Cauca
'CES', // Cesar
'CHO', // Choco
'COR', // Cordoba
'CHO', // Chocó
'COR', // Córdoba
'CUN', // Cundinamarca
'DC', // Bogota D.C.
'GUA', // Guainia
'DC', // Distrito Capital de Bogotá
'GUA', // Guainía
'GUV', // Guaviare
'HUI', // Huila
'LAG', // La Guajira
'MAG', // Magdalena
'MET', // Meta
'NAR', // Narino
'NAR', // Nariño
'NSA', // Norte de Santander
'PUT', // Putumayo
'QUI', // Quindio
'QUI', // Quindío
'RIS', // Risaralda
'SAN', // Santander
'SAP', // San Andres y Providencia
'SAP', // San Andrés, Providencia y Santa Catalina
'SUC', // Sucre
'TOL', // Tolima
'VAC', // Valle del Cauca
'VAU', // Vaupes
'VAU', // Vaupés
'VID', // Vichada
];

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: CR
*
* @link http://www.geonames.org/CR/administrative-division-costa-rica.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class CrSubdivisionCode extends AbstractSearcher
{
@ -27,9 +27,9 @@ class CrSubdivisionCode extends AbstractSearcher
'C', // Cartago
'G', // Guanacaste
'H', // Heredia
'L', // Limon
'L', // Limón
'P', // Puntarenas
'SJ', // San Jose
'SJ', // San José
];
public $compareIdentical = true;

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: CS
*
* @link http://www.geonames.org/CS/administrative-division-serbia-and-montenegro.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class CsSubdivisionCode extends AbstractSearcher
{

View file

@ -18,26 +18,25 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: CU
*
* @link http://www.geonames.org/CU/administrative-division-cuba.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class CuSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'01', // Pinar del Rio
'03', // La Habana
'02', // La Habana
'03', // Ciudad de La Habana
'04', // Matanzas
'05', // Villa Clara
'06', // Cienfuegos
'07', // Sancti Spiritus
'08', // Ciego de Avila
'09', // Camaguey
'07', // Sancti Spíritus
'08', // Ciego de Ávila
'09', // Camagüey
'10', // Las Tunas
'11', // Holguin
'11', // Holguín
'12', // Granma
'13', // Santiago de Cuba
'14', // Guantanamo
'15', // Artemisa
'16', // Mayabeque
'14', // Guantánamo
'99', // Isla de la Juventud
];

View file

@ -18,17 +18,16 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: CV
*
* @link http://www.geonames.org/CV/administrative-division-cape-verde.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class CvSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'B', // Ilhas de Barlavento
'S', // Ilhas de Sotavento
'BR', // Brava
'BV', // Boa Vista
'CA', // Santa Catarina
'CF', // Santa Catarina do Fogo
'CF', // Santa Catarina de Fogo
'CR', // Santa Cruz
'MA', // Maio
'MO', // Mosteiros
@ -38,13 +37,14 @@ class CvSubdivisionCode extends AbstractSearcher
'RB', // Ribeira Brava
'RG', // Ribeira Grande
'RS', // Ribeira Grande de Santiago
'SD', // Sao Domingos
'SF', // Sao Filipe
'S', // Ilhas de Sotavento
'SD', // São Domingos
'SF', // São Filipe
'SL', // Sal
'SL*', // São Lourenço dos Orgãos
'SM', // São Miguel
'SO', // São Lourenço dos Órgãos
'SS', // São Salvador do Mundo
'SV', // Sao Vicente
'SV', // São Vicente
'TA', // Tarrafal
'TS', // Tarrafal de São Nicolau
];

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: CW
*
* @link http://www.geonames.org/CW/administrative-division-curacao.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class CwSubdivisionCode extends AbstractSearcher
{

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: CX
*
* @link http://www.geonames.org/CX/administrative-division-christmas-island.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class CxSubdivisionCode extends AbstractSearcher
{

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: CY
*
* @link http://www.geonames.org/CY/administrative-division-cyprus.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class CySubdivisionCode extends AbstractSearcher
{

View file

@ -18,25 +18,12 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: CZ
*
* @link http://www.geonames.org/CZ/administrative-division-czech-republic.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class CzSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'JC', // South Bohemian Region (Jihocesky kraj)
'JM', // South Moravian Region (Jihomoravsky kraj)
'KA', // Carlsbad Region (Karlovarsky kraj)
'KR', // Hradec Kralove Region (Kralovehradecky kraj)
'LI', // Liberec Region (Liberecky kraj)
'MO', // Moravian-Silesian Region (Moravskoslezsky kraj)
'OL', // Olomouc Region (Olomoucky kraj)
'PA', // Pardubice Region (Pardubicky kraj)
'PL', // Plzen( Region Plzensky kraj)
'PR', // Prague - the Capital (Praha - hlavni mesto)
'ST', // Central Bohemian Region (Stredocesky kraj)
'US', // Usti nad Labem Region (Ustecky kraj)
'VY', // Vysocina Region (kraj Vysocina)
'ZL', // Zlin Region (Zlinsky kraj)
'10', // Praha, Hlavní mešto
'101', // Praha 1
'102', // Praha 2
'103', // Praha 3
@ -46,12 +33,20 @@ class CzSubdivisionCode extends AbstractSearcher
'107', // Praha 7
'108', // Praha 8
'109', // Praha 9
'10A', // Praha 10
'10B', // Praha 11
'10C', // Praha 12
'10D', // Praha 13
'10E', // Praha 14
'10F', // Praha 15
'110', // Praha 10
'111', // Praha 11
'112', // Praha 12
'113', // Praha 13
'114', // Praha 14
'115', // Praha 15
'116', // Praha 16
'117', // Praha 17
'118', // Praha 18
'119', // Praha 19
'120', // Praha 20
'121', // Praha 21
'122', // Praha 22
'20', // Středočeský kraj
'201', // Benešov
'202', // Beroun
'203', // Kladno
@ -64,6 +59,7 @@ class CzSubdivisionCode extends AbstractSearcher
'20A', // Praha-západ
'20B', // Příbram
'20C', // Rakovník
'31', // Jihočeský kraj
'311', // České Budějovice
'312', // Český Krumlov
'313', // Jindřichův Hradec
@ -71,6 +67,7 @@ class CzSubdivisionCode extends AbstractSearcher
'315', // Prachatice
'316', // Strakonice
'317', // Tábor
'32', // Plzeňský kraj
'321', // Domažlice
'322', // Klatovy
'323', // Plzeň-město
@ -78,9 +75,11 @@ class CzSubdivisionCode extends AbstractSearcher
'325', // Plzeň-sever
'326', // Rokycany
'327', // Tachov
'41', // Karlovarský kraj
'411', // Cheb
'412', // Karlovy Vary
'413', // Sokolov
'42', // Ústecký kraj
'421', // Děčín
'422', // Chomutov
'423', // Litoměřice
@ -88,46 +87,54 @@ class CzSubdivisionCode extends AbstractSearcher
'425', // Most
'426', // Teplice
'427', // Ústí nad Labem
'51', // Liberecký kraj
'511', // Česká Lípa
'512', // Jablonec nad Nisou
'513', // Liberec
'514', // Semily
'52', // Královéhradecký kraj
'521', // Hradec Králové
'522', // Jičín
'523', // Náchod
'524', // Rychnov nad Kněžnou
'525', // Trutnov
'53', // Pardubický kraj
'531', // Chrudim
'532', // Pardubice
'533', // Svitavy
'534', // Ústí nad Orlicí
'611', // Havlíčkův Brod
'612', // Jihlava
'613', // Pelhřimov
'614', // Třebíč
'615', // Ždár nad Sázavou
'621', // Blansko
'622', // Brno-město
'623', // Brno-venkov
'624', // Břeclav
'625', // Hodonín
'626', // Vyškov
'627', // Znojmo
'63', // Kraj Vysočina
'631', // Havlíčkův Brod
'632', // Jihlava
'633', // Pelhřimov
'634', // Třebíč
'635', // Žďár nad Sázavou
'64', // Jihomoravský kraj
'641', // Blansko
'642', // Brno-město
'643', // Brno-venkov
'644', // Břeclav
'645', // Hodonín
'646', // Vyškov
'647', // Znojmo
'71', // Olomoucký kraj
'711', // Jeseník
'712', // Olomouc
'713', // Prostĕjov
'713', // Prostějov
'714', // Přerov
'715', // Šumperk
'721', // Kromĕříž
'722', // Uherské Hradištĕ
'72', // Zlínský kraj
'721', // Kroměříž
'722', // Uherské Hradiště
'723', // Vsetín
'724', // Zlín
'80', // Moravskoslezský kraj
'801', // Bruntál
'802', // Frýdek - Místek
'802', // Frýdek Místek
'803', // Karviná
'804', // Nový Jičín
'805', // Opava
'806', // Ostrava - město
'806', // Ostrava-město
];
public $compareIdentical = true;

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: DE
*
* @link http://www.geonames.org/DE/administrative-division-germany.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class DeSubdivisionCode extends AbstractSearcher
{

View file

@ -18,17 +18,17 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: DJ
*
* @link http://www.geonames.org/DJ/administrative-division-djibouti.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class DjSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'AR', // Arta
'AS', // 'Ali Sabih
'AS', // Ali Sabieh
'DI', // Dikhil
'DJ', // Djibouti
'OB', // Obock
'TA', // Tadjoura
'TA', // Tadjourah
];
public $compareIdentical = true;

View file

@ -18,16 +18,16 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: DK
*
* @link http://www.geonames.org/DK/administrative-division-denmark.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class DkSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'81', // Region Nordjylland
'82', // Region Midtjylland
'83', // Region Syddanmark
'84', // Region Hovedstaden
'85', // Region Sjæland
'81', // Nordjylland
'82', // Midtjylland
'83', // Syddanmark
'84', // Hovedstaden
'85', // Sjælland
];
public $compareIdentical = true;

View file

@ -18,21 +18,21 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: DM
*
* @link http://www.geonames.org/DM/administrative-division-dominica.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class DmSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'02', // Saint Andrew Parish
'03', // Saint David Parish
'04', // Saint George Parish
'05', // Saint John Parish
'06', // Saint Joseph Parish
'07', // Saint Luke Parish
'08', // Saint Mark Parish
'09', // Saint Patrick Parish
'10', // Saint Paul Parish
'11', // Saint Peter Parish
'01', // Saint Peter
'02', // Saint Andrew
'03', // Saint David
'04', // Saint George
'05', // Saint John
'06', // Saint Joseph
'07', // Saint Luke
'08', // Saint Mark
'09', // Saint Patrick
'10', // Saint Paul
];
public $compareIdentical = true;

View file

@ -18,39 +18,39 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: DO
*
* @link http://www.geonames.org/DO/administrative-division-dominican-republic.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class DoSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'01', // Distrito Nacional
'01', // Distrito Nacional (Santo Domingo)
'02', // Azua
'03', // Baoruco
'03', // Bahoruco
'04', // Barahona
'05', // Dajabon
'05', // Dajabón
'06', // Duarte
'07', // Elias Pina
'08', // El Seybo
'07', // La Estrelleta [Elías Piña]
'08', // El Seybo [El Seibo]
'09', // Espaillat
'10', // Independencia
'11', // La Altagracia
'12', // La Romana
'13', // La Vega
'14', // Maria Trinidad Sanchez
'14', // María Trinidad Sánchez
'15', // Monte Cristi
'16', // Pedernales
'17', // Peravia (Bani)
'17', // Peravia
'18', // Puerto Plata
'19', // Salcedo
'20', // Samana
'21', // San Cristobal
'20', // Samaná
'21', // San Cristóbal
'22', // San Juan
'23', // San Pedro de Macoris
'24', // Sanchez Ramirez
'23', // San Pedro de Macorís
'24', // Sánchez Ramírez
'25', // Santiago
'26', // Santiago Rodriguez
'26', // Santiago Rodríguez
'27', // Valverde
'28', // Monsenor Nouel
'28', // Monseñor Nouel
'29', // Monte Plata
'30', // Hato Mayor
];

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: DZ
*
* @link http://www.geonames.org/DZ/administrative-division-algeria.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class DzSubdivisionCode extends AbstractSearcher
{
@ -26,38 +26,38 @@ class DzSubdivisionCode extends AbstractSearcher
'01', // Adrar
'02', // Chlef
'03', // Laghouat
'04', // Oum el-Bouaghi
'04', // Oum el Bouaghi
'05', // Batna
'06', // Bejaia
'06', // Béjaïa
'07', // Biskra
'08', // Bechar
'08', // Béchar
'09', // Blida
'10', // Bouira
'11', // Tamanghasset
'12', // Tebessa
'12', // Tébessa
'13', // Tlemcen
'14', // Tiaret
'15', // Tizi Ouzou
'16', // Alger
'17', // Djelfa
'18', // Jijel
'19', // Setif
'20', // Saida
'19', // Sétif
'20', // Saïda
'21', // Skikda
'22', // Sidi Bel Abbes
'22', // Sidi Bel Abbès
'23', // Annaba
'24', // Guelma
'25', // Constantine
'26', // Medea
'26', // Médéa
'27', // Mostaganem
'28', // M'Sila
'29', // Muaskar
'28', // Msila
'29', // Mascara
'30', // Ouargla
'31', // Oran
'32', // El Bayadh
'33', // Illizi
'34', // Bordj Bou Arreridj
'35', // Boumerdes
'34', // Bordj Bou Arréridj
'35', // Boumerdès
'36', // El Tarf
'37', // Tindouf
'38', // Tissemsilt
@ -66,10 +66,10 @@ class DzSubdivisionCode extends AbstractSearcher
'41', // Souk Ahras
'42', // Tipaza
'43', // Mila
'44', // Ain Defla
'44', // Aïn Defla
'45', // Naama
'46', // Ain Temouchent
'47', // Ghardaia
'46', // Aïn Témouchent
'47', // Ghardaïa
'48', // Relizane
];

View file

@ -18,32 +18,32 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: EC
*
* @link http://www.geonames.org/EC/administrative-division-ecuador.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class EcSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'A', // Azuay
'B', // Bolivar
'B', // Bolívar
'C', // Carchi
'D', // Orellana
'E', // Esmeraldas
'F', // Canar
'F', // Cañar
'G', // Guayas
'H', // Chimborazo
'I', // Imbabura
'L', // Loja
'M', // Manabi
'M', // Manabí
'N', // Napo
'O', // El Oro
'P', // Pichincha
'R', // Los Rios
'R', // Los Ríos
'S', // Morona-Santiago
'SD', // Santo Domingo de los Tsáchilas
'SE', // Santa Elena
'T', // Tungurahua
'U', // Sucumbios
'W', // Galapagos
'U', // Sucumbíos
'W', // Galápagos
'X', // Cotopaxi
'Y', // Pastaza
'Z', // Zamora-Chinchipe

View file

@ -18,26 +18,26 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: EE
*
* @link http://www.geonames.org/EE/administrative-division-estonia.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class EeSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'37', // Harju County
'39', // Hiiu County
'44', // Ida-Viru County
'49', // Jõgeva County
'51', // Järva County
'57', // Lääne County
'59', // Lääne-Viru County
'65', // Põlva County
'67', // Pärnu County
'70', // Rapla County
'74', // Saare County
'78', // Tartu County
'82', // Valga County
'84', // Viljandi County
'86', // Võru County
'37', // Harjumaa
'39', // Hiiumaa
'44', // Ida-Virumaa
'49', // Jõgevamaa
'51', // Järvamaa
'57', // Läänemaa
'59', // Lääne-Virumaa
'65', // Põlvamaa
'67', // Pärnumaa
'70', // Raplamaa
'74', // Saaremaa
'78', // Tartumaa
'82', // Valgamaa
'84', // Viljandimaa
'86', // Võrumaa
];
public $compareIdentical = true;

View file

@ -18,40 +18,39 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: EG
*
* @link http://www.geonames.org/EG/administrative-division-egypt.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class EgSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'ALX', // Al Iskandariyah
'ASN', // Aswan
'AST', // Asyut
'ALX', // Al Iskandarīyah
'ASN', // Aswān
'AST', // Asyūt
'BA', // Al Bahr al Ahmar
'BH', // Al Buhayrah
'BNS', // Bani Suwayf
'C', // Al Qahirah
'DK', // Ad Daqahliyah
'DT', // Dumyat
'FYM', // Al Fayyum
'GH', // Al Gharbiyah
'GZ', // Al Jizah
'IS', // Al Isma'iliyah
'JS', // Janub Sina'
'KB', // Al Qalyubiyah
'BNS', // Banī Suwayf
'C', // Al Qāhirah
'DK', // Ad Daqahlīyah
'DT', // Dumyāt
'FYM', // Al Fayyūm
'GH', // Al Gharbīyah
'GZ', // Al Jīzah
'HU', // Ḩulwān
'IS', // Al Ismā`īlīyah
'JS', // Janūb Sīnā'
'KB', // Al Qalyūbīyah
'KFS', // Kafr ash Shaykh
'KN', // Qina
'LX', // Al Uqşur
'MN', // Al Minya
'MNF', // Al Minufiyah
'MT', // Matruh
'PTS', // Bur Sa'id
'SHG', // Suhaj
'SHR', // Ash Sharqiyah
'SIN', // Shamal Sina'
'SUZ', // As Suways
'WAD', // Al Wadi al Jadid
'HU', // Helwan
'KN', // Qinā
'MN', // Al Minyā
'MNF', // Al Minūfīyah
'MT', // Matrūh
'PTS', // Būr Sa`īd
'SHG', // Sūhāj
'SHR', // Ash Sharqīyah
'SIN', // Shamal Sīnā'
'SU', // As Sādis min Uktūbar
'SUZ', // As Suways
'WAD', // Al Wādī al Jadīd
];
public $compareIdentical = true;

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: EH
*
* @link http://www.geonames.org/EH/administrative-division-western-sahara.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class EhSubdivisionCode extends AbstractSearcher
{

View file

@ -18,17 +18,17 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: ER
*
* @link http://www.geonames.org/ER/administrative-division-eritrea.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class ErSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'AN', // Anseba (Keren)
'DK', // Southern Red Sea (Debub-Keih-Bahri)
'DU', // Southern (Debub)
'GB', // Gash-Barka (Barentu)
'MA', // Central (Maekel)
'SK', // Northern Red Sea (Semien-Keih-Bahri)
'AN', // Ansabā
'DK', // Janūbī al Baḩrī al Aḩmar
'DU', // Al Janūbī
'GB', // Qāsh-Barkah
'MA', // Al Awsaţ
'SK', // Shimālī al Baḩrī al Aḩmar
];
public $compareIdentical = true;

View file

@ -18,51 +18,44 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: ES
*
* @link http://www.geonames.org/ES/administrative-division-spain.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class EsSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'AN', // Comunidad Autónoma de Andalucía
'AR', // Comunidad Autónoma de Aragón
'AS', // Comunidad Autónoma del Principado de Asturias
'CB', // Comunidad Autónoma de Cantabria
'CE', // Ceuta
'CL', // Comunidad Autónoma de Castilla y León
'CM', // Comunidad Autónoma de Castilla-La Mancha
'CN', // Comunidad Autónoma de Canarias
'CT', // Catalunya
'EX', // Comunidad Autónoma de Extremadura
'GA', // Comunidad Autónoma de Galicia
'IB', // Comunidad Autónoma de las Islas Baleares
'MC', // Comunidad Autónoma de la Región de Murcia
'MD', // Comunidad de Madrid
'ML', // Melilla
'NC', // Comunidad Foral de Navarra
'PV', // Euskal Autonomia Erkidegoa
'RI', // Comunidad Autónoma de La Rioja
'VC', // Comunidad Valenciana
'A', // Alicante
'AB', // Albacete
'AL', // Almería
'AN', // Andalucía
'AR', // Aragón
'AS', // Asturias, Principado de
'AV', // Ávila
'B', // Barcelona
'BA', // Badajoz
'BI', // Vizcaya
'BI', // Bizkaia
'BU', // Burgos
'C', // A Coruña
'CA', // Cádiz
'CB', // Cantabria
'CC', // Cáceres
'CE', // Ceuta
'CL', // Castilla y León
'CM', // Castilla-La Mancha
'CN', // Canarias
'CO', // Córdoba
'CR', // Ciudad Real
'CS', // Castellón
'CT', // Catalunya
'CU', // Cuenca
'EX', // Extremadura
'GA', // Galicia
'GC', // Las Palmas
'GI', // Girona
'GR', // Granada
'GU', // Guadalajara
'H', // Huelva
'HU', // Huesca
'IB', // Illes Balears
'J', // Jaén
'L', // Lleida
'LE', // León
@ -70,25 +63,32 @@ class EsSubdivisionCode extends AbstractSearcher
'LU', // Lugo
'M', // Madrid
'MA', // Málaga
'MC', // Murcia, Región de
'MD', // Madrid, Comunidad de
'ML', // Melilla
'MU', // Murcia
'NA', // Navarra
'NA', // Navarra / Nafarroa
'NC', // Navarra, Comunidad Foral de / Nafarroako Foru Komunitatea
'O', // Asturias
'OR', // Ourense
'P', // Palencia
'PM', // Baleares
'PM', // Balears
'PO', // Pontevedra
'PV', // País Vasco / Euskal Herria
'RI', // La Rioja
'S', // Cantabria
'SA', // Salamanca
'SE', // Sevilla
'SG', // Segovia
'SO', // Soria
'SS', // Guipúzcoa
'SS', // Gipuzkoa
'T', // Tarragona
'TE', // Teruel
'TF', // Santa Cruz de Tenerife
'TO', // Toledo
'V', // Valencia
'V', // Valencia / València
'VA', // Valladolid
'VC', // Valenciana, Comunidad / Valenciana, Comunitat
'VI', // Álava
'Z', // Zaragoza
'ZA', // Zamora

View file

@ -18,21 +18,21 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: ET
*
* @link http://www.geonames.org/ET/administrative-division-ethiopia.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class EtSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'AA', // Addis Ababa
'AF', // Afar
'AM', // Amhara
'BE', // Benishangul-Gumaz
'DD', // Dire Dawa
'GA', // Gambela
'HA', // Hariai
'OR', // Oromia
'SN', // Southern Nations - Nationalities and Peoples Region
'SO', // Somali
'AA', // Ādīs Ābeba
'AF', // Āfar
'AM', // Āmara
'BE', // Bīnshangul Gumuz
'DD', // Dirē Dawa
'GA', // Gambēla Hizboch
'HA', // Hārerī Hizb
'OR', // Oromīya
'SN', // YeDebub Bihēroch Bihēreseboch na Hizboch
'SO', // Sumalē
'TI', // Tigray
];

View file

@ -18,36 +18,30 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: FI
*
* @link http://www.geonames.org/FI/administrative-division-finland.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class FiSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'01', // Ahvenanmaa [Finnish] / Åland [Swedish]
'02', // Etelä-Karjala [Finnish] / Södra Karelen [Swedish]
'03', // Etelä-Pohjanmaa [Finnish] / Södra Österbotten [Swedish]
'04', // Etelä-Savo [Finnish] / Södra Savolax [Swedish]
'05', // Kainuu [Finnish] / Kajanaland [Swedish]
'06', // Kanta-Häme [Finnish] / Egentliga Tavastland [Swedish]
'07', // Keski-Pohjanmaa [Finnish] / Mellersta Österbotten [Swedish]
'08', // Keski-Suomi [Finnish] / Mellersta Finland [Swedish]
'09', // Kymenlaakso [Finnish] / Kymmenedalen [Swedish]
'10', // Lappi [Finnish] / Lappland [Swedish]
'11', // Pirkanmaa [Finnish] / Birkaland [Swedish]
'12', // Pohjanmaa [Finnish] / Österbotten [Swedish]
'13', // Pohjois-Karjala [Finnish] / Norra Karelen [Swedish]
'14', // Pohjois-Pohjanmaa [Finnish] / Norra Österbotten [Swedish]
'15', // Pohjois-Savo [Finnish] / Norra Savolax [Swedish]
'16', // Päijät-Häme [Finnish] / Päijänne-Tavastland [Swedish]
'17', // Satakunta [Finnish and Swedish]
'18', // Uusimaa [Finnish] / Nyland [Swedish]
'19', // Varsinais-Suomi [Finnish] / Egentliga Finland [Swedish]
'AL', // Ahvenanmaan laani
'ES', // Etela-Suomen laani
'IS', // Ita-Suomen laani
'LL', // Lapin laani
'LS', // Lansi-Suomen laani
'OL', // Oulun laani
'01', // Ahvenanmaan maakunta
'02', // Etelä-Karjala
'03', // Etelä-Pohjanmaa
'04', // Etelä-Savo
'05', // Kainuu
'06', // Kanta-Häme
'07', // Keski-Pohjanmaa
'08', // Keski-Suomi
'09', // Kymenlaakso
'10', // Lappi
'11', // Pirkanmaa
'12', // Pohjanmaa
'13', // Pohjois-Karjala
'14', // Pohjois-Pohjanmaa
'15', // Pohjois-Savo
'16', // Päijät-Häme
'17', // Satakunta
'18', // Uusimaa
'19', // Varsinais-Suomi
];
public $compareIdentical = true;

View file

@ -18,16 +18,16 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: FJ
*
* @link http://www.geonames.org/FJ/administrative-division-fiji.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class FjSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'C', // Central Division
'E', // Eastern Division
'N', // Northern Division
'C', // Central
'E', // Eastern
'N', // Northern
'R', // Rotuma
'W', // Western Division
'W', // Western
];
public $compareIdentical = true;

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: FK
*
* @link http://www.geonames.org/FK/administrative-division-falkland-islands.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class FkSubdivisionCode extends AbstractSearcher
{

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: FM
*
* @link http://www.geonames.org/FM/administrative-division-micronesia.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class FmSubdivisionCode extends AbstractSearcher
{

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: FO
*
* @link http://www.geonames.org/FO/administrative-division-faroe-islands.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class FoSubdivisionCode extends AbstractSearcher
{

View file

@ -18,28 +18,12 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: FR
*
* @link http://www.geonames.org/FR/administrative-division-france.html
* @link https://www.iso.org/obp/ui/en/#iso:code:3166:FR
* @link https://salsa.debian.org/iso-codes-team/iso-codes
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class FrSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'ARA', // Auvergne-Rhône-Alpes
'BFC', // Bourgogne-Franche-Comté
'BRE', // Bretagne
'CVL', // Centre-Val de Loire
'COR', // Corse
'GES', // Grand Est
'GUA', // Guadeloupe
'HDF', // Hauts-de-France
'IDF', // Île-de-France
'MAY', // Mayotte
'NOR', // Normandie
'NAQ', // Nouvelle-Aquitaine
'OCC', // Occitanie
'PDL', // Pays de la Loire
'PAC', // Provence-Alpes-Côte d'Azur
'LRE', // La Réunion
'01', // Ain
'02', // Aisne
'03', // Allier
@ -136,19 +120,35 @@ class FrSubdivisionCode extends AbstractSearcher
'93', // Seine-Saint-Denis
'94', // Val-de-Marne
'95', // Val-d'Oise
'BL', // Saint Barthélemy (see also separate ISO 3166-1 entry under BL)
'ARA', // Auvergne-Rhône-Alpes
'BFC', // Bourgogne-Franche-Comté
'BL', // Saint-Barthélemy
'BRE', // Bretagne
'COR', // Corse
'CP', // Clipperton
'GF', // Guyane (française) (see also separate country code entry under GF)
'GP', // Guadeloupe (see also separate country code entry under GP)
'MF', // Saint Martin (see also separate ISO 3166-1 entry under MF)
'MQ', // Martinique (see also separate country code entry under MQ)
'NC', // Nouvelle-Calédonie (see also separate ISO 3166-1 entry under NC)
'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)
'RE', // La Réunion (see also separate country code entry under RE)
'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)
'CVL', // Centre-Val de Loire
'GES', // Grand-Est
'GF', // Guyane (française)
'GP', // Guadeloupe
'GUA', // Guadeloupe
'HDF', // Hauts-de-France
'IDF', // Île-de-France
'LRE', // La Réunion
'MAY', // Mayotte
'MF', // Saint-Martin
'MQ', // Martinique
'NAQ', // Nouvelle-Aquitaine
'NC', // Nouvelle-Calédonie
'NOR', // Normandie
'OCC', // Occitanie
'PAC', // Provence-Alpes-Côte-dAzur
'PDL', // Pays-de-la-Loire
'PF', // Polynésie française
'PM', // Saint-Pierre-et-Miquelon
'RE', // La Réunion
'TF', // Terres australes françaises
'WF', // Wallis-et-Futuna
'YT', // Mayotte
];
public $compareIdentical = true;

View file

@ -18,19 +18,19 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: GA
*
* @link http://www.geonames.org/GA/administrative-division-gabon.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class GaSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'1', // Estuaire
'2', // Haut-Ogooue
'3', // Moyen-Ogooue
'4', // Ngounie
'2', // Haut-Ogooué
'3', // Moyen-Ogooué
'4', // Ngounié
'5', // Nyanga
'6', // Ogooue-Ivindo
'7', // Ogooue-Lolo
'8', // Ogooue-Maritime
'6', // Ogooué-Ivindo
'7', // Ogooué-Lolo
'8', // Ogooué-Maritime
'9', // Woleu-Ntem
];

View file

@ -18,23 +18,19 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: GB
*
* @link http://www.geonames.org/GB/administrative-division-united-kingdom.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class GbSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'ENG', // England
'NIR', // Northern Ireland
'SCT', // Scotland
'WLS', // Wales
'ABC', // Armagh, Banbridge and Craigavon
'ABD', // Aberdeenshire
'ABE', // Aberdeen
'ABE', // Aberdeen City
'AGB', // Argyll and Bute
'AGY', // Isle of Anglesey
'AGY', // Isle of Anglesey; Sir Ynys Môn
'AND', // Ards and North Down
'ANN', // Antrim and Newtownabbey
'ANS', // Angus
'ANT', // Antrim
'ARD', // Ards
'ARM', // Armagh
'BAS', // Bath and North East Somerset
'BBD', // Blackburn with Darwen
'BDF', // Bedford
@ -42,14 +38,11 @@ class GbSubdivisionCode extends AbstractSearcher
'BEN', // Brent
'BEX', // Bexley
'BFS', // Belfast
'BGE', // Bridgend
'BGE', // Bridgend; Pen-y-bont ar Ogwr
'BGW', // Blaenau Gwent
'BIR', // Birmingham
'BKM', // Buckinghamshire
'BLA', // Ballymena
'BLY', // Ballymoney
'BMH', // Bournemouth
'BNB', // Banbridge
'BNE', // Barnet
'BNH', // Brighton and Hove
'BNS', // Barnsley
@ -58,60 +51,57 @@ class GbSubdivisionCode extends AbstractSearcher
'BRC', // Bracknell Forest
'BRD', // Bradford
'BRY', // Bromley
'BST', // Bristol City of
'BST', // Bristol, City of
'BUR', // Bury
'CAM', // Cambridgeshire
'CAY', // Caerphilly
'CAY', // Caerphilly; Caerffili
'CBF', // Central Bedfordshire
'CGN', // Ceredigion
'CGV', // Craigavon
'CCG', // Causeway Coast and Glens
'CGN', // Ceredigion; Sir Ceredigion
'CHE', // Cheshire East
'CHW', // Cheshire West and Chester
'CKF', // Carrickfergus
'CKT', // Cookstown
'CLD', // Calderdale
'CLK', // Clackmannanshire
'CLR', // Coleraine
'CMA', // Cumbria
'CMD', // Camden
'CMN', // Carmarthenshire
'CMN', // Carmarthenshire; Sir Gaerfyrddin
'CON', // Cornwall
'COV', // Coventry (West Midlands district)
'CRF', // Cardiff
'COV', // Coventry
'CRF', // Cardiff; Caerdydd
'CRY', // Croydon
'CSR', // Castlereagh
'CWY', // Conwy
'DAL', // Darlington
'DBY', // Derbyshire
'DEN', // Denbighshire
'DEN', // Denbighshire; Sir Ddinbych
'DER', // Derby
'DEV', // Devon
'DGN', // Dungannon and South Tyrone
'DGY', // Dumfries and Galloway
'DNC', // Doncaster
'DND', // Dundee
'DND', // Dundee City
'DOR', // Dorset
'DOW', // Down
'DRY', // Derry
'DUD', // Dudley (West Midlands district)
'DUR', // Durham
'DRS', // Derry and Strabane
'DUD', // Dudley
'DUR', // Durham County
'EAL', // Ealing
'EAW', // England and Wales
'EAY', // East Ayrshire
'EDH', // Edinburgh
'EDH', // Edinburgh, City of
'EDU', // East Dunbartonshire
'ELN', // East Lothian
'ELS', // Eilean Siar
'ENF', // Enfield
'ENG', // England
'ERW', // East Renfrewshire
'ERY', // East Riding of Yorkshire
'ESS', // Essex
'ESX', // East Sussex
'FAL', // Falkirk
'FER', // Fermanagh
'FIF', // Fife
'FLN', // Flintshire
'GAT', // Gateshead (Tyne
'GLG', // Glasgow
'FLN', // Flintshire; Sir y Fflint
'FMO', // Fermanagh and Omagh
'GAT', // Gateshead
'GBN', // Great Britain
'GLG', // Glasgow City
'GLS', // Gloucestershire
'GRE', // Greenwich
'GWN', // Gwynedd
@ -119,7 +109,7 @@ class GbSubdivisionCode extends AbstractSearcher
'HAM', // Hampshire
'HAV', // Havering
'HCK', // Hackney
'HEF', // Herefordshire County of
'HEF', // Herefordshire
'HIL', // Hillingdon
'HLD', // Highland
'HMF', // Hammersmith and Fulham
@ -128,16 +118,18 @@ class GbSubdivisionCode extends AbstractSearcher
'HRT', // Hertfordshire
'HRW', // Harrow
'HRY', // Haringey
'IOS', // Isles of Scilly
'IOW', // Isle of Wight
'ISL', // Islington
'IVC', // Inverclyde
'KEC', // Kensington and Chelsea
'KEN', // Kent
'KHL', // Kingston upon Hull City of
'KHL', // Kingston upon Hull
'KIR', // Kirklees
'KTT', // Kingston upon Thames
'KWL', // Knowsley
'LAN', // Lancashire
'LBC', // Lisburn and Castlereagh
'LBH', // Lambeth
'LCE', // Leicester
'LDS', // Leeds
@ -145,46 +137,41 @@ class GbSubdivisionCode extends AbstractSearcher
'LEW', // Lewisham
'LIN', // Lincolnshire
'LIV', // Liverpool
'LMV', // Limavady
'LND', // London City of
'LRN', // Larne
'LSB', // Lisburn
'LND', // London, City of
'LUT', // Luton
'MAN', // Manchester
'MDB', // Middlesbrough
'MDW', // Medway
'MFT', // Magherafelt
'MEA', // Mid and East Antrim
'MIK', // Milton Keynes
'MLN', // Midlothian
'MON', // Monmouthshire
'MON', // Monmouthshire; Sir Fynwy
'MRT', // Merton
'MRY', // Moray
'MTY', // Merthyr Tydfil
'MYL', // Moyle
'MTY', // Merthyr Tydfil; Merthyr Tudful
'MUL', // Mid Ulster
'NAY', // North Ayrshire
'NBL', // Northumberland
'NDN', // North Down
'NEL', // North East Lincolnshire
'NET', // Newcastle upon Tyne
'NFK', // Norfolk
'NGM', // Nottingham
'NIR', // Northern Ireland
'NLK', // North Lanarkshire
'NLN', // North Lincolnshire
'NMD', // Newry, Mourne and Down
'NSM', // North Somerset
'NTA', // Newtownabbey
'NTH', // Northamptonshire
'NTL', // Neath Port Talbot
'NTL', // Neath Port Talbot; Castell-nedd Port Talbot
'NTT', // Nottinghamshire
'NTY', // North Tyneside
'NWM', // Newham
'NWP', // Newport
'NWP', // Newport; Casnewydd
'NYK', // North Yorkshire
'NYM', // Newry and Mourne
'OLD', // Oldham
'OMH', // Omagh
'ORK', // Orkney Islands
'OXF', // Oxfordshire
'PEM', // Pembrokeshire
'PEM', // Pembrokeshire; Sir Benfro
'PKN', // Perth and Kinross
'PLY', // Plymouth
'POL', // Poole
@ -193,7 +180,7 @@ class GbSubdivisionCode extends AbstractSearcher
'PTE', // Peterborough
'RCC', // Redcar and Cleveland
'RCH', // Rochdale
'RCT', // Rhondda Cynon Taf
'RCT', // Rhondda, Cynon, Taff; Rhondda, Cynon, Taf
'RDB', // Redbridge
'RDG', // Reading
'RFW', // Renfrewshire
@ -202,12 +189,13 @@ class GbSubdivisionCode extends AbstractSearcher
'RUT', // Rutland
'SAW', // Sandwell
'SAY', // South Ayrshire
'SCB', // Scottish Borders The
'SCB', // Scottish Borders, The
'SCT', // Scotland
'SFK', // Suffolk
'SFT', // Sefton
'SGC', // South Gloucestershire
'SHF', // Sheffield
'SHN', // St Helens
'SHN', // St. Helens
'SHR', // Shropshire
'SKP', // Stockport
'SLF', // Salford
@ -218,7 +206,6 @@ class GbSubdivisionCode extends AbstractSearcher
'SOM', // Somerset
'SOS', // Southend-on-Sea
'SRY', // Surrey
'STB', // Strabane
'STE', // Stoke-on-Trent
'STG', // Stirling
'STH', // Southampton
@ -226,17 +213,18 @@ class GbSubdivisionCode extends AbstractSearcher
'STS', // Staffordshire
'STT', // Stockton-on-Tees
'STY', // South Tyneside
'SWA', // Swansea
'SWA', // Swansea; Abertawe
'SWD', // Swindon
'SWK', // Southwark
'TAM', // Tameside
'TFW', // Telford and Wrekin
'THR', // Thurrock
'TOB', // Torbay
'TOF', // Torfaen
'TOF', // Torfaen; Tor-faen
'TRF', // Trafford
'TWH', // Tower Hamlets
'VGL', // Vale of Glamorgan
'UKM', // United Kingdom
'VGL', // Vale of Glamorgan, The; Bro Morgannwg
'WAR', // Warwickshire
'WBK', // West Berkshire
'WDU', // West Dunbartonshire
@ -246,6 +234,7 @@ class GbSubdivisionCode extends AbstractSearcher
'WKF', // Wakefield
'WLL', // Walsall
'WLN', // West Lothian
'WLS', // Wales; Cymru
'WLV', // Wolverhampton
'WND', // Wandsworth
'WNM', // Windsor and Maidenhead
@ -253,13 +242,11 @@ class GbSubdivisionCode extends AbstractSearcher
'WOR', // Worcestershire
'WRL', // Wirral
'WRT', // Warrington
'WRX', // Wrexham
'WRX', // Wrexham; Wrecsam
'WSM', // Westminster
'WSX', // West Sussex
'YOR', // York
'ZET', // Shetland Islands
'BDF', // Bedfordshire
'CHS', // Cheshire
];
public $compareIdentical = true;

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: GD
*
* @link http://www.geonames.org/GD/administrative-division-grenada.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class GdSubdivisionCode extends AbstractSearcher
{

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: GE
*
* @link http://www.geonames.org/GE/administrative-division-georgia.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class GeSubdivisionCode extends AbstractSearcher
{
@ -26,15 +26,15 @@ class GeSubdivisionCode extends AbstractSearcher
'AB', // Abkhazia
'AJ', // Ajaria
'GU', // Guria
'IM', // Imereti
'KA', // Kakheti
'KK', // Kvemo Kartli
'MM', // Mtskheta-Mtianeti
'RL', // Racha Lechkhumi and Kvemo Svaneti
'SJ', // Samtskhe-Javakheti
'SK', // Shida Kartli
'SZ', // Samegrelo-Zemo Svaneti
'TB', // Tbilisi
'IM', // Imereti
'KA', // Kakheti
'KK', // Kvemo Kartli
'MM', // Mtskheta-Mtianeti
'RL', // Racha-Lechkhumi-Kvemo Svaneti
'SJ', // Samtskhe-Javakheti
'SK', // Shida Kartli
'SZ', // Samegrelo-Zemo Svaneti
'TB', // Tbilisi
];
public $compareIdentical = true;

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: GF
*
* @link http://www.geonames.org/GF/administrative-division-french-guiana.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class GfSubdivisionCode extends AbstractSearcher
{

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: GG
*
* @link http://www.geonames.org/GG/administrative-division-guernsey.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class GgSubdivisionCode extends AbstractSearcher
{

View file

@ -18,21 +18,21 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: GH
*
* @link http://www.geonames.org/GH/administrative-division-ghana.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class GhSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'AA', // Greater Accra Region
'AH', // Ashanti Region
'BA', // Brong-Ahafo Region
'CP', // Central Region
'EP', // Eastern Region
'NP', // Northern Region
'TV', // Volta Region
'UE', // Upper East Region
'UW', // Upper West Region
'WP', // Western Region
'AA', // Greater Accra
'AH', // Ashanti
'BA', // Brong-Ahafo
'CP', // Central
'EP', // Eastern
'NP', // Northern
'TV', // Volta
'UE', // Upper East
'UW', // Upper West
'WP', // Western
];
public $compareIdentical = true;

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: GI
*
* @link http://www.geonames.org/GI/administrative-division-gibraltar.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class GiSubdivisionCode extends AbstractSearcher
{

View file

@ -18,15 +18,15 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: GL
*
* @link http://www.geonames.org/GL/administrative-division-greenland.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class GlSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'KU', // Kujalleq
'QA', // Qaasuitsup
'QE', // Qeqqata
'SM', // Sermersooq
'KU', // Kommune Kujalleq
'QA', // Qaasuitsup Kommunia
'QE', // Qeqqata Kommunia
'SM', // Kommuneqarfik Sermersooq
];
public $compareIdentical = true;

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: GM
*
* @link http://www.geonames.org/GM/administrative-division-gambia.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class GmSubdivisionCode extends AbstractSearcher
{

View file

@ -18,51 +18,51 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: GN
*
* @link http://www.geonames.org/GN/administrative-division-guinea.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class GnSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'B', // Boké
'C', // Conakry
'D', // Kindia
'F', // Faranah
'K', // Kankan
'L', // Labé
'M', // Mamou
'N', // Nzérékoré
'BE', // Beyla
'BF', // Boffa
'BK', // Boke
'BK', // Boké
'C', // Conakry
'CO', // Coyah
'D', // Kindia
'DB', // Dabola
'DI', // Dinguiraye
'DL', // Dalaba
'DU', // Dubreka
'DU', // Dubréka
'F', // Faranah
'FA', // Faranah
'FO', // Forecariah
'FO', // Forécariah
'FR', // Fria
'GA', // Gaoual
'GU', // Gueckedou
'GU', // Guékédou
'K', // Kankan
'KA', // Kankan
'KB', // Koubia
'KD', // Kindia
'KE', // Kerouane
'KE', // Kérouané
'KN', // Koundara
'KO', // Kouroussa
'KS', // Kissidougou
'LA', // Labe
'LE', // Lelouma
'L', // Labé
'LA', // Labé
'LE', // Lélouma
'LO', // Lola
'M', // Mamou
'MC', // Macenta
'MD', // Mandiana
'ML', // Mali
'MM', // Mamou
'NZ', // Nzerekore
'N', // Nzérékoré
'NZ', // Nzérékoré
'PI', // Pita
'SI', // Siguiri
'TE', // Telimele
'TO', // Tougue
'TE', // Télimélé
'TO', // Tougué
'YO', // Yomou
];

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: GP
*
* @link http://www.geonames.org/GP/administrative-division-guadeloupe.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class GpSubdivisionCode extends AbstractSearcher
{

View file

@ -18,20 +18,20 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: GQ
*
* @link http://www.geonames.org/GQ/administrative-division-equatorial-guinea.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class GqSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'AN', // Annobón
'BN', // Bioko Norte
'BS', // Bioko Sur
'C', // Región Continental
'CS', // Centro Sur
'I', // Región Insular
'AN', // Provincia Annobon
'BN', // Provincia Bioko Norte
'BS', // Provincia Bioko Sur
'CS', // Provincia Centro Sur
'KN', // Provincia Kie-Ntem
'LI', // Provincia Litoral
'WN', // Provincia Wele-Nzas
'KN', // Kié-Ntem
'LI', // Litoral
'WN', // Wele-Nzas
];
public $compareIdentical = true;

View file

@ -18,13 +18,64 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: GR
*
* @link http://www.geonames.org/GR/administrative-division-greece.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class GrSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'01', // Aitolia kai Akarnania
'03', // Voiotia
'04', // Evvoias
'05', // Evrytania
'06', // Fthiotida
'07', // Fokida
'11', // Argolida
'12', // Arkadia
'13', // Achaïa
'14', // Ileia
'15', // Korinthia
'16', // Lakonia
'17', // Messinia
'21', // Zakynthos
'22', // Kerkyra
'23', // Kefallonia
'24', // Lefkada
'31', // Arta
'32', // Thesprotia
'33', // Ioannina
'34', // Preveza
'41', // Karditsa
'42', // Larisa
'43', // Magnisia
'44', // Trikala
'51', // Grevena
'52', // Drama
'53', // Imathia
'54', // Thessaloniki
'55', // Kavala
'56', // Kastoria
'57', // Kilkis
'58', // Kozani
'59', // Pella
'61', // Pieria
'62', // Serres
'63', // Florina
'64', // Chalkidiki
'69', // Agio Oros
'71', // Evros
'72', // Xanthi
'73', // Rodopi
'81', // Dodekanisos
'82', // Kyklades
'83', // Lesvos
'84', // Samos
'85', // Chios
'91', // Irakleio
'92', // Lasithi
'93', // Rethymno
'94', // Chania
'A', // Anatoliki Makedonia kai Thraki
'A1', // Attiki
'B', // Kentriki Makedonia
'C', // Dytiki Makedonia
'D', // Ipeiros
@ -37,57 +88,6 @@ class GrSubdivisionCode extends AbstractSearcher
'K', // Voreio Aigaio
'L', // Notio Aigaio
'M', // Kriti
'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
'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
'A1', // Nomós Attikís
];
public $compareIdentical = true;

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: GS
*
* @link http://www.geonames.org/GS/administrative-division-south-georgia-and-the-south-sandwich-islands.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class GsSubdivisionCode extends AbstractSearcher
{

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: GT
*
* @link http://www.geonames.org/GT/administrative-division-guatemala.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class GtSubdivisionCode extends AbstractSearcher
{
@ -33,17 +33,17 @@ class GtSubdivisionCode extends AbstractSearcher
'IZ', // Izabal
'JA', // Jalapa
'JU', // Jutiapa
'PE', // El Peten
'PE', // Petén
'PR', // El Progreso
'QC', // El Quiche
'QC', // Quiché
'QZ', // Quetzaltenango
'RE', // Retalhuleu
'SA', // Sacatepequez
'SA', // Sacatepéquez
'SM', // San Marcos
'SO', // Solola
'SO', // Sololá
'SR', // Santa Rosa
'SU', // Suchitepequez
'TO', // Totonicapan
'SU', // Suchitepéquez
'TO', // Totonicapán
'ZA', // Zacapa
];

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: GU
*
* @link http://www.geonames.org/GU/administrative-division-guam.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class GuSubdivisionCode extends AbstractSearcher
{

View file

@ -18,23 +18,23 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: GW
*
* @link http://www.geonames.org/GW/administrative-division-guinea-bissau.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class GwSubdivisionCode extends AbstractSearcher
{
public $haystack = [
'BA', // Bafatá
'BL', // Bolama
'BM', // Biombo
'BS', // Bissau
'CA', // Cacheu
'GA', // Gabú
'L', // Leste
'N', // Norte
'OI', // Oio
'QU', // Quinara
'S', // Sul
'BA', // Bafata Region
'BL', // Bolama Region
'BM', // Biombo Region
'BS', // Bissau Region
'CA', // Cacheu Region
'GA', // Gabu Region
'OI', // Oio Region
'QU', // Quinara Region
'TO', // Tombali Region
'TO', // Tombali
];
public $compareIdentical = true;

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: GY
*
* @link http://www.geonames.org/GY/administrative-division-guyana.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class GySubdivisionCode extends AbstractSearcher
{

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: HK
*
* @link http://www.geonames.org/HK/administrative-division-hong-kong.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class HkSubdivisionCode extends AbstractSearcher
{

View file

@ -18,7 +18,7 @@ use Respect\Validation\Rules\AbstractSearcher;
*
* ISO 3166-1 alpha-2: HM
*
* @link http://www.geonames.org/HM/administrative-division-heard-island-and-mcdonald-islands.html
* @link https://salsa.debian.org/iso-codes-team/iso-codes
*/
class HmSubdivisionCode extends AbstractSearcher
{

Some files were not shown because too many files have changed in this diff Show more