countries 4.1.3 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +40 -1
- data/README.markdown +42 -35
- data/Rakefile +23 -31
- data/lib/countries/cache/countries.json +1 -1
- data/lib/countries/cache/locales/nb.json +1 -1
- data/lib/countries/cache/locales/nn.json +1 -1
- data/lib/countries/country/class_methods.rb +19 -6
- data/lib/countries/country.rb +42 -2
- data/lib/countries/data/countries/AD.yaml +28 -29
- data/lib/countries/data/countries/AE.yaml +32 -33
- data/lib/countries/data/countries/AF.yaml +32 -33
- data/lib/countries/data/countries/AG.yaml +28 -29
- data/lib/countries/data/countries/AI.yaml +27 -28
- data/lib/countries/data/countries/AL.yaml +28 -29
- data/lib/countries/data/countries/AM.yaml +30 -31
- data/lib/countries/data/countries/AO.yaml +25 -26
- data/lib/countries/data/countries/AQ.yaml +24 -25
- data/lib/countries/data/countries/AR.yaml +30 -31
- data/lib/countries/data/countries/AS.yaml +31 -32
- data/lib/countries/data/countries/AT.yaml +36 -37
- data/lib/countries/data/countries/AU.yaml +33 -34
- data/lib/countries/data/countries/AW.yaml +25 -26
- data/lib/countries/data/countries/AX.yaml +27 -28
- data/lib/countries/data/countries/AZ.yaml +30 -31
- data/lib/countries/data/countries/BA.yaml +32 -33
- data/lib/countries/data/countries/BB.yaml +28 -29
- data/lib/countries/data/countries/BD.yaml +27 -28
- data/lib/countries/data/countries/BE.yaml +41 -42
- data/lib/countries/data/countries/BF.yaml +27 -28
- data/lib/countries/data/countries/BG.yaml +36 -37
- data/lib/countries/data/countries/BH.yaml +28 -29
- data/lib/countries/data/countries/BI.yaml +27 -28
- data/lib/countries/data/countries/BJ.yaml +26 -27
- data/lib/countries/data/countries/BL.yaml +25 -26
- data/lib/countries/data/countries/BM.yaml +29 -30
- data/lib/countries/data/countries/BN.yaml +26 -27
- data/lib/countries/data/countries/BO.yaml +31 -32
- data/lib/countries/data/countries/BQ.yaml +28 -29
- data/lib/countries/data/countries/BR.yaml +35 -36
- data/lib/countries/data/countries/BS.yaml +27 -28
- data/lib/countries/data/countries/BT.yaml +28 -29
- data/lib/countries/data/countries/BV.yaml +23 -24
- data/lib/countries/data/countries/BW.yaml +27 -28
- data/lib/countries/data/countries/BY.yaml +30 -31
- data/lib/countries/data/countries/BZ.yaml +28 -29
- data/lib/countries/data/countries/CA.yaml +30 -31
- data/lib/countries/data/countries/CC.yaml +28 -29
- data/lib/countries/data/countries/CD.yaml +35 -36
- data/lib/countries/data/countries/CF.yaml +29 -30
- data/lib/countries/data/countries/CG.yaml +29 -30
- data/lib/countries/data/countries/CH.yaml +40 -41
- data/lib/countries/data/countries/CI.yaml +27 -28
- data/lib/countries/data/countries/CK.yaml +27 -28
- data/lib/countries/data/countries/CL.yaml +32 -33
- data/lib/countries/data/countries/CM.yaml +29 -30
- data/lib/countries/data/countries/CN.yaml +28 -29
- data/lib/countries/data/countries/CO.yaml +28 -29
- data/lib/countries/data/countries/CR.yaml +26 -27
- data/lib/countries/data/countries/CU.yaml +27 -28
- data/lib/countries/data/countries/CV.yaml +28 -29
- data/lib/countries/data/countries/CW.yaml +25 -26
- data/lib/countries/data/countries/CX.yaml +30 -31
- data/lib/countries/data/countries/CY.yaml +40 -41
- data/lib/countries/data/countries/CZ.yaml +38 -39
- data/lib/countries/data/countries/DE.yaml +36 -37
- data/lib/countries/data/countries/DJ.yaml +29 -30
- data/lib/countries/data/countries/DK.yaml +35 -36
- data/lib/countries/data/countries/DM.yaml +26 -27
- data/lib/countries/data/countries/DO.yaml +28 -29
- data/lib/countries/data/countries/DZ.yaml +28 -29
- data/lib/countries/data/countries/EC.yaml +28 -29
- data/lib/countries/data/countries/EE.yaml +35 -36
- data/lib/countries/data/countries/EG.yaml +28 -29
- data/lib/countries/data/countries/EH.yaml +30 -31
- data/lib/countries/data/countries/ER.yaml +31 -32
- data/lib/countries/data/countries/ES.yaml +36 -37
- data/lib/countries/data/countries/ET.yaml +28 -29
- data/lib/countries/data/countries/FI.yaml +38 -39
- data/lib/countries/data/countries/FJ.yaml +33 -34
- data/lib/countries/data/countries/FK.yaml +29 -30
- data/lib/countries/data/countries/FM.yaml +28 -29
- data/lib/countries/data/countries/FO.yaml +28 -29
- data/lib/countries/data/countries/FR.yaml +37 -38
- data/lib/countries/data/countries/GA.yaml +27 -28
- data/lib/countries/data/countries/GB.yaml +39 -38
- data/lib/countries/data/countries/GD.yaml +26 -27
- data/lib/countries/data/countries/GE.yaml +28 -29
- data/lib/countries/data/countries/GF.yaml +29 -30
- data/lib/countries/data/countries/GG.yaml +30 -31
- data/lib/countries/data/countries/GH.yaml +27 -28
- data/lib/countries/data/countries/GI.yaml +26 -27
- data/lib/countries/data/countries/GL.yaml +29 -30
- data/lib/countries/data/countries/GM.yaml +25 -26
- data/lib/countries/data/countries/GN.yaml +30 -31
- data/lib/countries/data/countries/GP.yaml +27 -28
- data/lib/countries/data/countries/GQ.yaml +29 -30
- data/lib/countries/data/countries/GR.yaml +37 -38
- data/lib/countries/data/countries/GS.yaml +27 -28
- data/lib/countries/data/countries/GT.yaml +26 -27
- data/lib/countries/data/countries/GU.yaml +31 -32
- data/lib/countries/data/countries/GW.yaml +28 -29
- data/lib/countries/data/countries/GY.yaml +26 -27
- data/lib/countries/data/countries/HK.yaml +28 -29
- data/lib/countries/data/countries/HM.yaml +27 -28
- data/lib/countries/data/countries/HN.yaml +27 -28
- data/lib/countries/data/countries/HR.yaml +37 -38
- data/lib/countries/data/countries/HT.yaml +29 -30
- data/lib/countries/data/countries/HU.yaml +37 -38
- data/lib/countries/data/countries/ID.yaml +28 -29
- data/lib/countries/data/countries/IE.yaml +39 -40
- data/lib/countries/data/countries/IL.yaml +35 -29
- data/lib/countries/data/countries/IM.yaml +29 -30
- data/lib/countries/data/countries/IN.yaml +30 -31
- data/lib/countries/data/countries/IO.yaml +26 -27
- data/lib/countries/data/countries/IQ.yaml +28 -29
- data/lib/countries/data/countries/IR.yaml +28 -29
- data/lib/countries/data/countries/IS.yaml +35 -36
- data/lib/countries/data/countries/IT.yaml +36 -37
- data/lib/countries/data/countries/JE.yaml +26 -27
- data/lib/countries/data/countries/JM.yaml +28 -29
- data/lib/countries/data/countries/JO.yaml +28 -29
- data/lib/countries/data/countries/JP.yaml +28 -29
- data/lib/countries/data/countries/KE.yaml +29 -30
- data/lib/countries/data/countries/KG.yaml +30 -31
- data/lib/countries/data/countries/KH.yaml +28 -29
- data/lib/countries/data/countries/KI.yaml +25 -26
- data/lib/countries/data/countries/KM.yaml +29 -30
- data/lib/countries/data/countries/KN.yaml +29 -29
- data/lib/countries/data/countries/KP.yaml +27 -28
- data/lib/countries/data/countries/KR.yaml +28 -29
- data/lib/countries/data/countries/KW.yaml +28 -29
- data/lib/countries/data/countries/KY.yaml +29 -30
- data/lib/countries/data/countries/KZ.yaml +30 -31
- data/lib/countries/data/countries/LA.yaml +27 -28
- data/lib/countries/data/countries/LB.yaml +30 -31
- data/lib/countries/data/countries/LC.yaml +28 -29
- data/lib/countries/data/countries/LI.yaml +27 -28
- data/lib/countries/data/countries/LK.yaml +28 -29
- data/lib/countries/data/countries/LR.yaml +28 -29
- data/lib/countries/data/countries/LS.yaml +28 -29
- data/lib/countries/data/countries/LT.yaml +37 -38
- data/lib/countries/data/countries/LU.yaml +39 -40
- data/lib/countries/data/countries/LV.yaml +36 -37
- data/lib/countries/data/countries/LY.yaml +27 -28
- data/lib/countries/data/countries/MA.yaml +28 -29
- data/lib/countries/data/countries/MC.yaml +28 -29
- data/lib/countries/data/countries/MD.yaml +28 -29
- data/lib/countries/data/countries/ME.yaml +33 -34
- data/lib/countries/data/countries/MF.yaml +29 -30
- data/lib/countries/data/countries/MG.yaml +30 -31
- data/lib/countries/data/countries/MH.yaml +30 -31
- data/lib/countries/data/countries/MK.yaml +28 -29
- data/lib/countries/data/countries/ML.yaml +25 -26
- data/lib/countries/data/countries/MM.yaml +27 -28
- data/lib/countries/data/countries/MN.yaml +28 -29
- data/lib/countries/data/countries/MO.yaml +28 -29
- data/lib/countries/data/countries/MP.yaml +31 -32
- data/lib/countries/data/countries/MQ.yaml +27 -28
- data/lib/countries/data/countries/MR.yaml +29 -30
- data/lib/countries/data/countries/MS.yaml +26 -27
- data/lib/countries/data/countries/MT.yaml +36 -37
- data/lib/countries/data/countries/MU.yaml +28 -29
- data/lib/countries/data/countries/MV.yaml +28 -29
- data/lib/countries/data/countries/MW.yaml +27 -28
- data/lib/countries/data/countries/MX.yaml +33 -34
- data/lib/countries/data/countries/MY.yaml +30 -31
- data/lib/countries/data/countries/MZ.yaml +28 -29
- data/lib/countries/data/countries/NA.yaml +30 -31
- data/lib/countries/data/countries/NC.yaml +29 -30
- data/lib/countries/data/countries/NE.yaml +27 -28
- data/lib/countries/data/countries/NF.yaml +29 -30
- data/lib/countries/data/countries/NG.yaml +33 -34
- data/lib/countries/data/countries/NI.yaml +26 -27
- data/lib/countries/data/countries/NL.yaml +36 -37
- data/lib/countries/data/countries/NO.yaml +36 -37
- data/lib/countries/data/countries/NP.yaml +32 -33
- data/lib/countries/data/countries/NR.yaml +27 -28
- data/lib/countries/data/countries/NU.yaml +25 -26
- data/lib/countries/data/countries/NZ.yaml +34 -35
- data/lib/countries/data/countries/OM.yaml +28 -29
- data/lib/countries/data/countries/PA.yaml +26 -27
- data/lib/countries/data/countries/PE.yaml +28 -29
- data/lib/countries/data/countries/PF.yaml +29 -30
- data/lib/countries/data/countries/PG.yaml +28 -29
- data/lib/countries/data/countries/PH.yaml +35 -36
- data/lib/countries/data/countries/PK.yaml +30 -31
- data/lib/countries/data/countries/PL.yaml +36 -37
- data/lib/countries/data/countries/PM.yaml +29 -30
- data/lib/countries/data/countries/PN.yaml +27 -28
- data/lib/countries/data/countries/PR.yaml +28 -29
- data/lib/countries/data/countries/PS.yaml +31 -32
- data/lib/countries/data/countries/PT.yaml +33 -34
- data/lib/countries/data/countries/PW.yaml +26 -27
- data/lib/countries/data/countries/PY.yaml +28 -29
- data/lib/countries/data/countries/QA.yaml +27 -28
- data/lib/countries/data/countries/RE.yaml +28 -29
- data/lib/countries/data/countries/RO.yaml +37 -38
- data/lib/countries/data/countries/RS.yaml +28 -29
- data/lib/countries/data/countries/RU.yaml +28 -29
- data/lib/countries/data/countries/RW.yaml +31 -32
- data/lib/countries/data/countries/SA.yaml +33 -29
- data/lib/countries/data/countries/SB.yaml +27 -28
- data/lib/countries/data/countries/SC.yaml +28 -29
- data/lib/countries/data/countries/SD.yaml +30 -31
- data/lib/countries/data/countries/SE.yaml +37 -38
- data/lib/countries/data/countries/SG.yaml +32 -33
- data/lib/countries/data/countries/SH.yaml +29 -30
- data/lib/countries/data/countries/SI.yaml +36 -37
- data/lib/countries/data/countries/SJ.yaml +29 -30
- data/lib/countries/data/countries/SK.yaml +36 -37
- data/lib/countries/data/countries/SL.yaml +25 -26
- data/lib/countries/data/countries/SM.yaml +28 -29
- data/lib/countries/data/countries/SN.yaml +27 -28
- data/lib/countries/data/countries/SO.yaml +30 -31
- data/lib/countries/data/countries/SR.yaml +26 -27
- data/lib/countries/data/countries/SS.yaml +29 -30
- data/lib/countries/data/countries/ST.yaml +27 -28
- data/lib/countries/data/countries/SV.yaml +27 -28
- data/lib/countries/data/countries/SX.yaml +28 -29
- data/lib/countries/data/countries/SY.yaml +27 -28
- data/lib/countries/data/countries/SZ.yaml +30 -31
- data/lib/countries/data/countries/TC.yaml +30 -31
- data/lib/countries/data/countries/TD.yaml +29 -30
- data/lib/countries/data/countries/TF.yaml +28 -29
- data/lib/countries/data/countries/TG.yaml +25 -26
- data/lib/countries/data/countries/TH.yaml +34 -35
- data/lib/countries/data/countries/TJ.yaml +30 -31
- data/lib/countries/data/countries/TK.yaml +27 -28
- data/lib/countries/data/countries/TL.yaml +27 -28
- data/lib/countries/data/countries/TM.yaml +30 -31
- data/lib/countries/data/countries/TN.yaml +30 -31
- data/lib/countries/data/countries/TO.yaml +29 -30
- data/lib/countries/data/countries/TR.yaml +28 -29
- data/lib/countries/data/countries/TT.yaml +28 -29
- data/lib/countries/data/countries/TV.yaml +25 -26
- data/lib/countries/data/countries/TW.yaml +28 -29
- data/lib/countries/data/countries/TZ.yaml +30 -31
- data/lib/countries/data/countries/UA.yaml +34 -35
- data/lib/countries/data/countries/UG.yaml +28 -29
- data/lib/countries/data/countries/UM.yaml +29 -30
- data/lib/countries/data/countries/US.yaml +29 -29
- data/lib/countries/data/countries/UY.yaml +27 -28
- data/lib/countries/data/countries/UZ.yaml +30 -31
- data/lib/countries/data/countries/VA.yaml +31 -32
- data/lib/countries/data/countries/VC.yaml +29 -30
- data/lib/countries/data/countries/VE.yaml +26 -27
- data/lib/countries/data/countries/VG.yaml +29 -30
- data/lib/countries/data/countries/VI.yaml +28 -29
- data/lib/countries/data/countries/VN.yaml +28 -29
- data/lib/countries/data/countries/VU.yaml +31 -32
- data/lib/countries/data/countries/WF.yaml +29 -30
- data/lib/countries/data/countries/WS.yaml +28 -29
- data/lib/countries/data/countries/YE.yaml +27 -28
- data/lib/countries/data/countries/YT.yaml +26 -27
- data/lib/countries/data/countries/ZA.yaml +39 -40
- data/lib/countries/data/countries/ZM.yaml +28 -29
- data/lib/countries/data/countries/ZW.yaml +31 -32
- data/lib/countries/data/subdivisions/CZ.yaml +115 -50
- data/lib/countries/data/subdivisions/KE.yaml +391 -503
- data/lib/countries/data/subdivisions/MK.yaml +3501 -5809
- data/lib/countries/data/subdivisions/SG.yaml +39 -109
- data/lib/countries/data/subdivisions/US.yaml +0 -42
- data/lib/countries/data/translation_corrections.yaml +20 -14
- data/lib/countries/global.rb +1 -3
- data/lib/countries/structure.rb +2 -5
- data/lib/countries/tasks/geocoding.rake +1 -1
- data/lib/countries/version.rb +1 -1
- data/spec/country_spec.rb +60 -56
- data/spec/data_spec.rb +9 -9
- metadata +3 -5
- data/lib/countries/data/subdivisions/FO.yaml +0 -85
- data/lib/countries/data/subdivisions/KY.yaml +0 -85
|
@@ -1 +1 @@
|
|
|
1
|
-
{"AW":"Aruba","AF":"Afghanistan","AO":"Angola","AI":"Anguilla","AX":"Åland","AL":"Albania","AD":"Andorra","AE":"De forente arabiske emirater","AR":"Argentina","AM":"Armenia","AS":"Amerikansk Samoa","AQ":"Antarktika","TF":"Franske sørlige territorier","AG":"Antigua og Barbuda","AU":"Australia","AT":"Østerrike","AZ":"Aserbajdsjan","BI":"Burundi","BE":"Belgia","BJ":"Benin","BQ":"Bonaire, Sint Eustatius og Saba","BF":"Burkina Faso","BD":"Bangladesh","BG":"Bulgaria","BH":"Bahrain","BS":"Bahamas","BA":"Bosnia-Hercegovina","BL":"Saint-Barthélemy","BY":"Hviterussland","BZ":"Belize","BM":"Bermuda","BO":"Bolivia","BR":"Brasil","BB":"Barbados","BN":"Brunei Darussalam","BT":"Bhutan","BV":"Bouvetøya","BW":"Botswana","CF":"Den sentralafrikanske republikk","CA":"Canada","CC":"Kokosøyene","CH":"Sveits","CL":"Chile","CN":"Kina","CI":"Elfenbenskysten","CM":"Kamerun","CD":"Kongo, Den demokratiske republikk","CG":"Kongo","CK":"Cookøyene","CO":"Colombia","KM":"Komorene","CV":"Kapp Verde","CR":"Costa Rica","CU":"Cuba","CW":"Curaçao","CX":"Christmasøya","KY":"Caymanøyene","CY":"Kypros","CZ":"Tsjekkia","DE":"Tyskland","DJ":"Djibouti","DM":"Dominica","DK":"Danmark","DO":"Den dominikanske republikk","DZ":"Algerie","EC":"Ecuador","EG":"Egypt","ER":"Eritrea","EH":"Vest-Sahara","ES":"Spania","EE":"Estland","ET":"Etiopia","FI":"Finland","FJ":"Fiji","FK":"Falklandsøyene","FR":"Frankrike","FO":"Færøyene","FM":"Mikronesia, Føderasjonen","GA":"Gabon","GB":"Storbritannia","GE":"Georgia","GG":"Guernsey","GH":"Ghana","GI":"Gibraltar","GN":"Guinea","GP":"Guadeloupe","GM":"Gambia","GW":"Guinea-Bissau","GQ":"Ekvatorial-Guinea","GR":"Hellas","GD":"Grenada","GL":"Grønland","GT":"Guatemala","GF":"Fransk Guyana","GU":"Guam","GY":"Guyana","HK":"Hongkong","HM":"Heard- og McDonaldøyene","HN":"Honduras","HR":"Kroatia","HT":"Haiti","HU":"Ungarn","ID":"Indonesia","IM":"Man","IN":"India","IO":"Det britiske territoriet i Indiahavet","IE":"Irland","IR":"Iran, Den islamske republikk","IQ":"Irak","IS":"Island","IL":"Israel","IT":"Italia","JM":"Jamaica","JE":"Jersey","JO":"Jordan","JP":"Japan","KZ":"Kasakhstan","KE":"Kenya","KG":"Kirgisistan","KH":"Kambodsja","KI":"Kiribati","KN":"Saint Kitts og Nevis","KR":"Sør-Korea","KW":"Kuwait","LA":"Den demokratiske folkerepublikk Laos","LB":"Libanon","LR":"Liberia","LY":"Libya","LC":"Saint Lucia","LI":"Liechtenstein","LK":"Sri Lanka","LS":"Lesotho","LT":"Litauen","LU":"Luxembourg","LV":"Latvia","MO":"Macao","MF":"Saint Martin (fransk del)","MA":"Marokko","MC":"Monaco","MD":"Moldova","MG":"Madagaskar","MV":"Maldivene","MX":"Mexico","MH":"Marshalløyene","MK":"Nord-Makedonia","ML":"Mali","MT":"Malta","MM":"Myanmar","ME":"Montenegro","MN":"Mongolia","MP":"Nord-Marianene","MZ":"Mosambik","MR":"Mauritania","MS":"Montserrat","MQ":"Martinique","MU":"Mauritius","MW":"Malawi","MY":"Malaysia","YT":"Mayotte","NA":"Namibia","NC":"Ny-Caledonia","NE":"Niger","NF":"Norfolkøya","NG":"Nigeria","NI":"Nicaragua","NU":"Niue","NL":"Nederland","NO":"Norge","NP":"Nepal","NR":"Nauru","NZ":"New Zealand","OM":"Oman","PK":"Pakistan","PA":"Panama","PN":"Pitcairn","PE":"Peru","PH":"Filippinene","PW":"Palau","PG":"Papua Ny-Guinea","PL":"Polen","PR":"Puerto Rico","KP":"Nord-Korea","PT":"Portugal","PY":"Paraguay","PS":"Palestina, staten","PF":"Fransk Polynesia","QA":"Qatar","RE":"Réunion","RO":"Romania","RU":"Den russiske føderasjon","RW":"Rwanda","SA":"Saudi-Arabia","SD":"Sudan","SN":"Senegal","SG":"Singapore","GS":"Sør-Georgia og Sør-Sandwichøyene","SH":"Saint Helena, Ascension og Tristan da Cunha","SJ":"Svalbard og Jan Mayen","SB":"Salomonøyene","SL":"Sierra Leone","SV":"El Salvador","SM":"San Marino","SO":"Somalia","PM":"Saint-Pierre og Miquelon","RS":"Serbia","SS":"Sør-Sudan","ST":"São Tomé og Príncipe","SR":"Surinam","SK":"Slovakia","SI":"Slovenia","SE":"Sverige","SZ":"Eswatini (tidligere Swasiland)","SX":"Sint Maarten (nederlandsk del)","SC":"Seychellene","SY":"Den arabiske republikk Syria","TC":"Turks- og Caicosøyene","TD":"Tsjad","TG":"Togo","TH":"Thailand","TJ":"Tadsjikistan","TK":"Tokelau","TM":"Turkmenistan","TL":"Øst-Timor","TO":"Tonga","TT":"Trinidad og Tobago","TN":"Tunisia","TR":"Tyrkia","TV":"Tuvalu","TW":"Taiwan","TZ":"Tanzania","UG":"Uganda","UA":"Ukraina","UM":"Mindre utenforliggende øyer til USA","UY":"Uruguay","US":"
|
|
1
|
+
{"AW":"Aruba","AF":"Afghanistan","AO":"Angola","AI":"Anguilla","AX":"Åland","AL":"Albania","AD":"Andorra","AE":"De forente arabiske emirater","AR":"Argentina","AM":"Armenia","AS":"Amerikansk Samoa","AQ":"Antarktika","TF":"Franske sørlige territorier","AG":"Antigua og Barbuda","AU":"Australia","AT":"Østerrike","AZ":"Aserbajdsjan","BI":"Burundi","BE":"Belgia","BJ":"Benin","BQ":"Bonaire, Sint Eustatius og Saba","BF":"Burkina Faso","BD":"Bangladesh","BG":"Bulgaria","BH":"Bahrain","BS":"Bahamas","BA":"Bosnia-Hercegovina","BL":"Saint-Barthélemy","BY":"Hviterussland","BZ":"Belize","BM":"Bermuda","BO":"Bolivia","BR":"Brasil","BB":"Barbados","BN":"Brunei Darussalam","BT":"Bhutan","BV":"Bouvetøya","BW":"Botswana","CF":"Den sentralafrikanske republikk","CA":"Canada","CC":"Kokosøyene","CH":"Sveits","CL":"Chile","CN":"Kina","CI":"Elfenbenskysten","CM":"Kamerun","CD":"Kongo, Den demokratiske republikk","CG":"Kongo","CK":"Cookøyene","CO":"Colombia","KM":"Komorene","CV":"Kapp Verde","CR":"Costa Rica","CU":"Cuba","CW":"Curaçao","CX":"Christmasøya","KY":"Caymanøyene","CY":"Kypros","CZ":"Tsjekkia","DE":"Tyskland","DJ":"Djibouti","DM":"Dominica","DK":"Danmark","DO":"Den dominikanske republikk","DZ":"Algerie","EC":"Ecuador","EG":"Egypt","ER":"Eritrea","EH":"Vest-Sahara","ES":"Spania","EE":"Estland","ET":"Etiopia","FI":"Finland","FJ":"Fiji","FK":"Falklandsøyene","FR":"Frankrike","FO":"Færøyene","FM":"Mikronesia, Føderasjonen","GA":"Gabon","GB":"Storbritannia","GE":"Georgia","GG":"Guernsey","GH":"Ghana","GI":"Gibraltar","GN":"Guinea","GP":"Guadeloupe","GM":"Gambia","GW":"Guinea-Bissau","GQ":"Ekvatorial-Guinea","GR":"Hellas","GD":"Grenada","GL":"Grønland","GT":"Guatemala","GF":"Fransk Guyana","GU":"Guam","GY":"Guyana","HK":"Hongkong","HM":"Heard- og McDonaldøyene","HN":"Honduras","HR":"Kroatia","HT":"Haiti","HU":"Ungarn","ID":"Indonesia","IM":"Man","IN":"India","IO":"Det britiske territoriet i Indiahavet","IE":"Irland","IR":"Iran, Den islamske republikk","IQ":"Irak","IS":"Island","IL":"Israel","IT":"Italia","JM":"Jamaica","JE":"Jersey","JO":"Jordan","JP":"Japan","KZ":"Kasakhstan","KE":"Kenya","KG":"Kirgisistan","KH":"Kambodsja","KI":"Kiribati","KN":"Saint Kitts og Nevis","KR":"Sør-Korea","KW":"Kuwait","LA":"Den demokratiske folkerepublikk Laos","LB":"Libanon","LR":"Liberia","LY":"Libya","LC":"Saint Lucia","LI":"Liechtenstein","LK":"Sri Lanka","LS":"Lesotho","LT":"Litauen","LU":"Luxembourg","LV":"Latvia","MO":"Macao","MF":"Saint Martin (fransk del)","MA":"Marokko","MC":"Monaco","MD":"Moldova","MG":"Madagaskar","MV":"Maldivene","MX":"Mexico","MH":"Marshalløyene","MK":"Nord-Makedonia","ML":"Mali","MT":"Malta","MM":"Myanmar","ME":"Montenegro","MN":"Mongolia","MP":"Nord-Marianene","MZ":"Mosambik","MR":"Mauritania","MS":"Montserrat","MQ":"Martinique","MU":"Mauritius","MW":"Malawi","MY":"Malaysia","YT":"Mayotte","NA":"Namibia","NC":"Ny-Caledonia","NE":"Niger","NF":"Norfolkøya","NG":"Nigeria","NI":"Nicaragua","NU":"Niue","NL":"Nederland","NO":"Norge","NP":"Nepal","NR":"Nauru","NZ":"New Zealand","OM":"Oman","PK":"Pakistan","PA":"Panama","PN":"Pitcairn","PE":"Peru","PH":"Filippinene","PW":"Palau","PG":"Papua Ny-Guinea","PL":"Polen","PR":"Puerto Rico","KP":"Nord-Korea","PT":"Portugal","PY":"Paraguay","PS":"Palestina, staten","PF":"Fransk Polynesia","QA":"Qatar","RE":"Réunion","RO":"Romania","RU":"Den russiske føderasjon","RW":"Rwanda","SA":"Saudi-Arabia","SD":"Sudan","SN":"Senegal","SG":"Singapore","GS":"Sør-Georgia og Sør-Sandwichøyene","SH":"Saint Helena, Ascension og Tristan da Cunha","SJ":"Svalbard og Jan Mayen","SB":"Salomonøyene","SL":"Sierra Leone","SV":"El Salvador","SM":"San Marino","SO":"Somalia","PM":"Saint-Pierre og Miquelon","RS":"Serbia","SS":"Sør-Sudan","ST":"São Tomé og Príncipe","SR":"Surinam","SK":"Slovakia","SI":"Slovenia","SE":"Sverige","SZ":"Eswatini (tidligere Swasiland)","SX":"Sint Maarten (nederlandsk del)","SC":"Seychellene","SY":"Den arabiske republikk Syria","TC":"Turks- og Caicosøyene","TD":"Tsjad","TG":"Togo","TH":"Thailand","TJ":"Tadsjikistan","TK":"Tokelau","TM":"Turkmenistan","TL":"Øst-Timor","TO":"Tonga","TT":"Trinidad og Tobago","TN":"Tunisia","TR":"Tyrkia","TV":"Tuvalu","TW":"Taiwan","TZ":"Tanzania","UG":"Uganda","UA":"Ukraina","UM":"Mindre utenforliggende øyer til USA","UY":"Uruguay","US":"USA","UZ":"Usbekistan","VA":"Vatikanstaten","VC":"Saint Vincent og Grenadinene","VE":"Venezuela","VG":"Jomfruøyene (Storbritannia)","VI":"Jomfruøyene (USA)","VN":"Vietnam","VU":"Vanuatu","WF":"Wallis og Futunaøyene","WS":"Samoa","YE":"Jemen","ZA":"Sør-Afrika","ZM":"Zambia","ZW":"Zimbabwe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"AW":"Aruba","AF":"Afghanistan","AO":"Angola","AI":"Anguilla","AX":"Åland","AL":"Albania","AD":"Andorra","AE":"Dei sameinte arabiske emirata","AR":"Argentina","AM":"Armenia","AS":"Amerikansk Samoa","AQ":"Antarktika","TF":"Franske sørlege territorium","AG":"Antigua og Barbuda","AU":"Australia","AT":"Austerrike","AZ":"Aserbajdsjan","BI":"Burundi","BE":"Belgia","BJ":"Benin","BQ":"Bonaire, Sint Eustatius and Saba","BF":"Burkina Faso","BD":"Bangladesh","BG":"Bulgaria","BH":"Bahrain","BS":"Bahamas","BA":"Bosnia-Hercegovina","BL":"Saint Barthélemy","BY":"Kviterussland","BZ":"Belize","BM":"Bermuda","BO":"Bolivia","BR":"Brasil","BB":"Barbados","BN":"Brunei","BT":"Bhutan","BV":"Bouvetøya","BW":"Botswana","CF":"Den sentralafrikanske republikken","CA":"Canada","CC":"Kokosøyane","CH":"Sveits","CL":"Chile","CN":"Kina","CI":"Elfenbeinskysten","CM":"Kamerun","CD":"Den demokratiske republikken Kongo","CG":"Kongo","CK":"Cookøyane","CO":"Colombia","KM":"Komorane","CV":"Cabo Verde","CR":"Costa Rica","CU":"Cuba","CW":"Curaçao","CX":"Christmasøya","KY":"Caymanøyane","CY":"Kypros","CZ":"Czechia","DE":"Tyskland","DJ":"Djibouti","DM":"Dominica","DK":"Danmark","DO":"Den dominikanske republikken","DZ":"Algerie","EC":"Ecuador","EG":"Egypt","ER":"Eritrea","EH":"Vest-Sahara","ES":"Spania","EE":"Estland","ET":"Etiopia","FI":"Finland","FJ":"Fiji","FK":"Falklandsøyane","FR":"Frankrike","FO":"Færøyane","FM":"Mikronesiaføderasjonen","GA":"Gabon","GB":"Storbritannia","GE":"Georgia","GG":"Guernsey","GH":"Ghana","GI":"Gibraltar","GN":"Guinea","GP":"Guadeloupe","GM":"Gambia","GW":"Guinea-Bissau","GQ":"Ekvatorial-Guinea","GR":"Hellas","GD":"Grenada","GL":"Grønland","GT":"Guatemala","GF":"Fransk Guyana","GU":"Guam","GY":"Guyana","HK":"Hongkong","HM":"Heard- og McDonaldøyane","HN":"Honduras","HR":"Kroatia","HT":"Haiti","HU":"Ungarn","ID":"Indonesia","IM":"Øya Man","IN":"India","IO":"Det britiske området i Indiahavet","IE":"Irland","IR":"Iran","IQ":"Irak","IS":"Island","IL":"Israel","IT":"Italia","JM":"Jamaica","JE":"Jersey","JO":"Jordan","JP":"Japan","KZ":"Kasakhstan","KE":"Kenya","KG":"Kirgisistan","KH":"Kambodsja","KI":"Kiribati","KN":"St. Kitts og Nevis; Saint Kitts og Nevis","KR":"Sør-Korea","KW":"Kuwait","LA":"Laos","LB":"Libanon","LR":"Liberia","LY":"Libya","LC":"St. Lucia; Saint Lucia","LI":"Liechtenstein","LK":"Sri Lanka","LS":"Lesotho","LT":"Litauen","LU":"Luxembourg; Luxemburg","LV":"Latvia","MO":"Macao","MF":"Saint Martin (French part)","MA":"Marokko","MC":"Monaco","MD":"Moldova","MG":"Madagaskar","MV":"Maldivane","MX":"Mexico","MH":"Marshalløyane","MK":"North Macedonia","ML":"Mali","MT":"Malta","MM":"Myanmar","ME":"Montenegro","MN":"Mongolia","MP":"Nord-Marianane","MZ":"Mosambik","MR":"Mauritania","MS":"Montserrat","MQ":"Martinique","MU":"Mauritius","MW":"Malawi","MY":"Malaysia","YT":"Mayotte","NA":"Namibia","NC":"Ny-Caledonia","NE":"Niger","NF":"Norfolkøya","NG":"Nigeria","NI":"Nicaragua","NU":"Niue","NL":"Nederland","NO":"Noreg","NP":"Nepal","NR":"Nauru","NZ":"New Zealand","OM":"Oman","PK":"Pakistan","PA":"Panama","PN":"Pitcairn","PE":"Peru","PH":"Filippinane","PW":"Palau","PG":"Papua Ny-Guinea","PL":"Polen","PR":"Puerto Rico","KP":"Nord-Korea","PT":"
|
|
1
|
+
{"AW":"Aruba","AF":"Afghanistan","AO":"Angola","AI":"Anguilla","AX":"Åland","AL":"Albania","AD":"Andorra","AE":"Dei sameinte arabiske emirata","AR":"Argentina","AM":"Armenia","AS":"Amerikansk Samoa","AQ":"Antarktika","TF":"Franske sørlege territorium","AG":"Antigua og Barbuda","AU":"Australia","AT":"Austerrike","AZ":"Aserbajdsjan","BI":"Burundi","BE":"Belgia","BJ":"Benin","BQ":"Bonaire, Sint Eustatius and Saba","BF":"Burkina Faso","BD":"Bangladesh","BG":"Bulgaria","BH":"Bahrain","BS":"Bahamas","BA":"Bosnia-Hercegovina","BL":"Saint Barthélemy","BY":"Kviterussland","BZ":"Belize","BM":"Bermuda","BO":"Bolivia","BR":"Brasil","BB":"Barbados","BN":"Brunei","BT":"Bhutan","BV":"Bouvetøya","BW":"Botswana","CF":"Den sentralafrikanske republikken","CA":"Canada","CC":"Kokosøyane","CH":"Sveits","CL":"Chile","CN":"Kina","CI":"Elfenbeinskysten","CM":"Kamerun","CD":"Den demokratiske republikken Kongo","CG":"Kongo","CK":"Cookøyane","CO":"Colombia","KM":"Komorane","CV":"Cabo Verde","CR":"Costa Rica","CU":"Cuba","CW":"Curaçao","CX":"Christmasøya","KY":"Caymanøyane","CY":"Kypros","CZ":"Czechia","DE":"Tyskland","DJ":"Djibouti","DM":"Dominica","DK":"Danmark","DO":"Den dominikanske republikken","DZ":"Algerie","EC":"Ecuador","EG":"Egypt","ER":"Eritrea","EH":"Vest-Sahara","ES":"Spania","EE":"Estland","ET":"Etiopia","FI":"Finland","FJ":"Fiji","FK":"Falklandsøyane","FR":"Frankrike","FO":"Færøyane","FM":"Mikronesiaføderasjonen","GA":"Gabon","GB":"Storbritannia","GE":"Georgia","GG":"Guernsey","GH":"Ghana","GI":"Gibraltar","GN":"Guinea","GP":"Guadeloupe","GM":"Gambia","GW":"Guinea-Bissau","GQ":"Ekvatorial-Guinea","GR":"Hellas","GD":"Grenada","GL":"Grønland","GT":"Guatemala","GF":"Fransk Guyana","GU":"Guam","GY":"Guyana","HK":"Hongkong","HM":"Heard- og McDonaldøyane","HN":"Honduras","HR":"Kroatia","HT":"Haiti","HU":"Ungarn","ID":"Indonesia","IM":"Øya Man","IN":"India","IO":"Det britiske området i Indiahavet","IE":"Irland","IR":"Iran","IQ":"Irak","IS":"Island","IL":"Israel","IT":"Italia","JM":"Jamaica","JE":"Jersey","JO":"Jordan","JP":"Japan","KZ":"Kasakhstan","KE":"Kenya","KG":"Kirgisistan","KH":"Kambodsja","KI":"Kiribati","KN":"St. Kitts og Nevis; Saint Kitts og Nevis","KR":"Sør-Korea","KW":"Kuwait","LA":"Laos","LB":"Libanon","LR":"Liberia","LY":"Libya","LC":"St. Lucia; Saint Lucia","LI":"Liechtenstein","LK":"Sri Lanka","LS":"Lesotho","LT":"Litauen","LU":"Luxembourg; Luxemburg","LV":"Latvia","MO":"Macao","MF":"Saint Martin (French part)","MA":"Marokko","MC":"Monaco","MD":"Moldova","MG":"Madagaskar","MV":"Maldivane","MX":"Mexico","MH":"Marshalløyane","MK":"North Macedonia","ML":"Mali","MT":"Malta","MM":"Myanmar","ME":"Montenegro","MN":"Mongolia","MP":"Nord-Marianane","MZ":"Mosambik","MR":"Mauritania","MS":"Montserrat","MQ":"Martinique","MU":"Mauritius","MW":"Malawi","MY":"Malaysia","YT":"Mayotte","NA":"Namibia","NC":"Ny-Caledonia","NE":"Niger","NF":"Norfolkøya","NG":"Nigeria","NI":"Nicaragua","NU":"Niue","NL":"Nederland","NO":"Noreg","NP":"Nepal","NR":"Nauru","NZ":"New Zealand","OM":"Oman","PK":"Pakistan","PA":"Panama","PN":"Pitcairn","PE":"Peru","PH":"Filippinane","PW":"Palau","PG":"Papua Ny-Guinea","PL":"Polen","PR":"Puerto Rico","KP":"Nord-Korea","PT":"Portugual","PY":"Paraguay","PS":"Palestina","PF":"Fransk Polynesia","QA":"Qatar","RE":"Réunion","RO":"Romania","RU":"Russland","RW":"Rwanda","SA":"Saudi-Arabia","SD":"Sudan","SN":"Senegal","SG":"Singapore","GS":"Sør-Georgia og dei sørlege Sandwichøyane","SH":"St. Helena, Ascension og Tristan da Cunha","SJ":"Svalbard og Jan Mayen","SB":"Salomonøyane","SL":"Sierra Leone","SV":"El Salvador","SM":"San Marino","SO":"Somalia","PM":"Saint-Pierre-et-Miquelon","RS":"Serbia","SS":"Sør-Sudan","ST":"São Tomé og Príncipe","SR":"Surinam","SK":"Slovakia","SI":"Slovenia","SE":"Sverige","SZ":"Eswatini","SX":"Sint Maarten (Dutch part)","SC":"Seychellane","SY":"Syria","TC":"Turks- og Caicosøyane","TD":"Tsjad","TG":"Togo","TH":"Thailand","TJ":"Tadsjikistan","TK":"Tokelau","TM":"Turkmenistan","TL":"Aust-Timor","TO":"Tonga","TT":"Trinidad og Tobago","TN":"Tunisia","TR":"Tyrkia","TV":"Tuvalu","TW":"Taiwan","TZ":"Tanzania","UG":"Uganda","UA":"Ukraina","UM":"Mindre utanforliggjande øyar til USA","UY":"Uruguay","US":"USA","UZ":"Usbekistan","VA":"Vatikanstaten","VC":"Saint Vincent og Grenadinane","VE":"Venezuela","VG":"Jomfruøyane (Storbritannia)","VI":"Jomfruøyane (USA)","VN":"Vietnam","VU":"Vanuatu","WF":"Wallis- og Futunaøyane","WS":"Samoa","YE":"Jemen","ZA":"Sør-Afrika","ZM":"Zambia","ZW":"Zimbabwe"}
|
|
@@ -39,7 +39,7 @@ module ISO3166
|
|
|
39
39
|
|
|
40
40
|
def all_names_with_codes(locale = 'en')
|
|
41
41
|
Country.all.map do |c|
|
|
42
|
-
lc = (c.translation(locale) || c.
|
|
42
|
+
lc = (c.translation(locale) || c.iso_short_name)
|
|
43
43
|
[lc.respond_to?('html_safe') ? lc.html_safe : lc, c.alpha2]
|
|
44
44
|
end.sort
|
|
45
45
|
end
|
|
@@ -55,7 +55,7 @@ module ISO3166
|
|
|
55
55
|
|
|
56
56
|
custom_countries = (ISO3166::Data.codes - i18n_data_countries.keys).map do |code|
|
|
57
57
|
country = ISO3166::Country[code]
|
|
58
|
-
translation = country.translations[locale] || country.
|
|
58
|
+
translation = country.translations[locale] || country.iso_short_name
|
|
59
59
|
[code, translation]
|
|
60
60
|
end.to_h
|
|
61
61
|
|
|
@@ -76,6 +76,14 @@ module ISO3166
|
|
|
76
76
|
return_all = matches[1]
|
|
77
77
|
super unless matches
|
|
78
78
|
|
|
79
|
+
if matches[3] == 'names'
|
|
80
|
+
if RUBY_VERSION =~ /^3\.\d\.\d/
|
|
81
|
+
warn "DEPRECATION WARNING: 'find_by_name' and 'find_*_by_name' methods are deprecated, please refer to the README file for more information on this change.", uplevel: 1, category: :deprecated
|
|
82
|
+
else
|
|
83
|
+
warn "DEPRECATION WARNING: 'find_by_name' and 'find_*_by_name' methods are deprecated, please refer to the README file for more information on this change.", uplevel: 1
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
79
87
|
countries = find_by(matches[3], arguments[0], matches[2])
|
|
80
88
|
return_all ? countries : countries.last
|
|
81
89
|
end
|
|
@@ -128,10 +136,15 @@ module ISO3166
|
|
|
128
136
|
raise "Invalid attribute name '#{attribute}'" unless searchable_attribute?(attribute.to_sym)
|
|
129
137
|
|
|
130
138
|
attributes = Array(attribute.to_s)
|
|
131
|
-
if
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
139
|
+
if attribute.to_s == 'name'
|
|
140
|
+
if RUBY_VERSION =~ /^3\.\d\.\d/
|
|
141
|
+
warn "DEPRECATION WARNING: 'find_by_name' and 'find_*_by_name' methods are deprecated, please refer to the README file for more information on this change.", uplevel: 1, category: :deprecated
|
|
142
|
+
else
|
|
143
|
+
warn "DEPRECATION WARNING: 'find_by_name' and 'find_*_by_name' methods are deprecated, please refer to the README file for more information on this change.", uplevel: 1
|
|
144
|
+
end
|
|
145
|
+
# 'find_by_name' and 'find_*_by_name' will be changed for 5.0
|
|
146
|
+
# The addition of 'iso_short_name' here ensures the behaviour of 4.1 is kept for 4.2
|
|
147
|
+
attributes = %w[iso_short_name unofficial_names translated_names]
|
|
135
148
|
end
|
|
136
149
|
|
|
137
150
|
[attributes, parse_value(val)]
|
data/lib/countries/country.rb
CHANGED
|
@@ -30,7 +30,24 @@ module ISO3166
|
|
|
30
30
|
alias postal_code? postal_code
|
|
31
31
|
alias zip_format postal_code_format
|
|
32
32
|
alias languages languages_official
|
|
33
|
-
|
|
33
|
+
|
|
34
|
+
def latitude_dec
|
|
35
|
+
if RUBY_VERSION =~ /^3\.\d\.\d/
|
|
36
|
+
warn "DEPRECATION WARNING: The Country#latitude_dec method has been deprecated and will be removed in 5.0. Please use Country#latitude instead.", uplevel: 1, category: :deprecated
|
|
37
|
+
else
|
|
38
|
+
warn "DEPRECATION WARNING: The Country#latitude_dec method has been deprecated and will be removed in 5.0. Please use Country#latitude instead.", uplevel: 1
|
|
39
|
+
end
|
|
40
|
+
latitude
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def longitude_dec
|
|
44
|
+
if RUBY_VERSION =~ /^3\.\d\.\d/
|
|
45
|
+
warn "DEPRECATION WARNING: The Country#longitude_dec method has been deprecated and will be removed in 5.0. Please use Country#longitude instead.", uplevel: 1, category: :deprecated
|
|
46
|
+
else
|
|
47
|
+
warn "DEPRECATION WARNING: The Country#longitude_dec method has been deprecated and will be removed in 5.0. Please use Country#longitude instead.", uplevel: 1
|
|
48
|
+
end
|
|
49
|
+
longitude
|
|
50
|
+
end
|
|
34
51
|
|
|
35
52
|
def ==(other)
|
|
36
53
|
other.respond_to?(:alpha2) && other.alpha2 == alpha2
|
|
@@ -83,7 +100,7 @@ module ISO3166
|
|
|
83
100
|
end
|
|
84
101
|
|
|
85
102
|
def to_s
|
|
86
|
-
data['
|
|
103
|
+
data['iso_short_name']
|
|
87
104
|
end
|
|
88
105
|
|
|
89
106
|
def translated_names
|
|
@@ -94,6 +111,11 @@ module ISO3166
|
|
|
94
111
|
data['translations'][locale.to_s.downcase]
|
|
95
112
|
end
|
|
96
113
|
|
|
114
|
+
def common_name
|
|
115
|
+
ISO3166.configuration.locales = ISO3166.configuration.locales.append(:en).uniq
|
|
116
|
+
translation('en')
|
|
117
|
+
end
|
|
118
|
+
|
|
97
119
|
# TODO: Looping through locale langs could be be very slow across multiple countries
|
|
98
120
|
def local_names
|
|
99
121
|
ISO3166.configuration.locales = (ISO3166.configuration.locales + languages.map(&:to_sym)).uniq
|
|
@@ -106,6 +128,24 @@ module ISO3166
|
|
|
106
128
|
@local_name ||= local_names.first
|
|
107
129
|
end
|
|
108
130
|
|
|
131
|
+
def name
|
|
132
|
+
if RUBY_VERSION =~ /^3\.\d\.\d/
|
|
133
|
+
warn "DEPRECATION WARNING: The Country#name method has been deprecated. Please use Country#iso_short_name instead or refer to the README file for more information on this change.", uplevel: 1, category: :deprecated
|
|
134
|
+
else
|
|
135
|
+
warn "DEPRECATION WARNING: The Country#name method has been deprecated. Please use Country#iso_short_name instead or refer to the README file for more information on this change.", uplevel: 1
|
|
136
|
+
end
|
|
137
|
+
iso_short_name
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
def names
|
|
141
|
+
if RUBY_VERSION =~ /^3\.\d\.\d/
|
|
142
|
+
warn "DEPRECATION WARNING: The Country#names method has been deprecated. Please use Country#unofficial_names instead or refer to the README file for more information on this change.", uplevel: 1, category: :deprecated
|
|
143
|
+
else
|
|
144
|
+
warn "DEPRECATION WARNING: The Country#names method has been deprecated. Please use Country#unofficial_names instead or refer to the README file for more information on this change.", uplevel: 1
|
|
145
|
+
end
|
|
146
|
+
unofficial_names
|
|
147
|
+
end
|
|
148
|
+
|
|
109
149
|
def reload
|
|
110
150
|
@data = if @country_data_or_code.is_a?(Hash)
|
|
111
151
|
@country_data_or_code
|
|
@@ -1,13 +1,33 @@
|
|
|
1
1
|
---
|
|
2
2
|
AD:
|
|
3
|
-
continent: Europe
|
|
4
3
|
alpha2: AD
|
|
5
4
|
alpha3: AND
|
|
5
|
+
continent: Europe
|
|
6
6
|
country_code: '376'
|
|
7
|
+
currency_code: EUR
|
|
8
|
+
gec: AN
|
|
9
|
+
geo:
|
|
10
|
+
latitude: 42.506285
|
|
11
|
+
longitude: 1.521801
|
|
12
|
+
max_latitude: 42.655791
|
|
13
|
+
max_longitude: 1.786639
|
|
14
|
+
min_latitude: 42.4287488
|
|
15
|
+
min_longitude: 1.4087052
|
|
16
|
+
bounds:
|
|
17
|
+
northeast:
|
|
18
|
+
lat: 42.655791
|
|
19
|
+
lng: 1.786639
|
|
20
|
+
southwest:
|
|
21
|
+
lat: 42.4287488
|
|
22
|
+
lng: 1.4087052
|
|
7
23
|
international_prefix: '00'
|
|
8
24
|
ioc: AND
|
|
9
|
-
|
|
10
|
-
|
|
25
|
+
iso_long_name: The Principality of Andorra
|
|
26
|
+
iso_short_name: Andorra
|
|
27
|
+
languages_official:
|
|
28
|
+
- ca
|
|
29
|
+
languages_spoken:
|
|
30
|
+
- ca
|
|
11
31
|
national_destination_code_lengths:
|
|
12
32
|
- 2
|
|
13
33
|
national_number_lengths:
|
|
@@ -16,37 +36,16 @@ AD:
|
|
|
16
36
|
- 8
|
|
17
37
|
- 9
|
|
18
38
|
national_prefix: None
|
|
39
|
+
nationality: Andorran
|
|
19
40
|
number: '020'
|
|
41
|
+
postal_code: true
|
|
42
|
+
postal_code_format: AD[1-7]0\d
|
|
20
43
|
region: Europe
|
|
44
|
+
start_of_week: monday
|
|
21
45
|
subregion: Southern Europe
|
|
22
|
-
world_region: EMEA
|
|
23
46
|
un_locode: AD
|
|
24
|
-
nationality: Andorran
|
|
25
|
-
postal_code: true
|
|
26
|
-
postal_code_format: AD[1-7]0\d
|
|
27
47
|
unofficial_names:
|
|
28
48
|
- Andorre
|
|
29
49
|
- Andorra
|
|
30
50
|
- アンドラ
|
|
31
|
-
|
|
32
|
-
- ca
|
|
33
|
-
languages_spoken:
|
|
34
|
-
- ca
|
|
35
|
-
geo:
|
|
36
|
-
latitude: 42.506285
|
|
37
|
-
latitude_dec: '42.5506591796875'
|
|
38
|
-
longitude: 1.521801
|
|
39
|
-
longitude_dec: '1.5762332677841187'
|
|
40
|
-
max_latitude: 42.655791
|
|
41
|
-
max_longitude: 1.786639
|
|
42
|
-
min_latitude: 42.4287488
|
|
43
|
-
min_longitude: 1.4087052
|
|
44
|
-
bounds:
|
|
45
|
-
northeast:
|
|
46
|
-
lat: 42.655791
|
|
47
|
-
lng: 1.786639
|
|
48
|
-
southwest:
|
|
49
|
-
lat: 42.4287488
|
|
50
|
-
lng: 1.4087052
|
|
51
|
-
currency_code: EUR
|
|
52
|
-
start_of_week: monday
|
|
51
|
+
world_region: EMEA
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
---
|
|
2
2
|
AE:
|
|
3
|
-
continent: Asia
|
|
4
3
|
address_format: |-
|
|
5
4
|
{{recipient}}
|
|
6
5
|
{{street}}
|
|
@@ -8,11 +7,32 @@ AE:
|
|
|
8
7
|
{{country}}
|
|
9
8
|
alpha2: AE
|
|
10
9
|
alpha3: ARE
|
|
10
|
+
continent: Asia
|
|
11
11
|
country_code: '971'
|
|
12
|
+
currency_code: AED
|
|
13
|
+
gec: AE
|
|
14
|
+
geo:
|
|
15
|
+
latitude: 23.424076
|
|
16
|
+
longitude: 53.847818
|
|
17
|
+
max_latitude: 26.0765
|
|
18
|
+
max_longitude: 56.4395001
|
|
19
|
+
min_latitude: 22.6315138
|
|
20
|
+
min_longitude: 51.4723
|
|
21
|
+
bounds:
|
|
22
|
+
northeast:
|
|
23
|
+
lat: 26.0765
|
|
24
|
+
lng: 56.4395001
|
|
25
|
+
southwest:
|
|
26
|
+
lat: 22.6315138
|
|
27
|
+
lng: 51.4723
|
|
12
28
|
international_prefix: '00'
|
|
13
29
|
ioc: UAE
|
|
14
|
-
|
|
15
|
-
|
|
30
|
+
iso_long_name: The United Arab Emirates
|
|
31
|
+
iso_short_name: United Arab Emirates
|
|
32
|
+
languages_official:
|
|
33
|
+
- ar
|
|
34
|
+
languages_spoken:
|
|
35
|
+
- ar
|
|
16
36
|
national_destination_code_lengths:
|
|
17
37
|
- 2
|
|
18
38
|
national_number_lengths:
|
|
@@ -20,18 +40,13 @@ AE:
|
|
|
20
40
|
- 8
|
|
21
41
|
- 9
|
|
22
42
|
national_prefix: '0'
|
|
43
|
+
nationality: Emirian
|
|
23
44
|
number: '784'
|
|
45
|
+
postal_code: false
|
|
24
46
|
region: Asia
|
|
47
|
+
start_of_week: sunday
|
|
25
48
|
subregion: Western Asia
|
|
26
|
-
world_region: EMEA
|
|
27
49
|
un_locode: AE
|
|
28
|
-
nationality: Emirian
|
|
29
|
-
vat_rates:
|
|
30
|
-
standard: 5
|
|
31
|
-
reduced: []
|
|
32
|
-
super_reduced:
|
|
33
|
-
parking:
|
|
34
|
-
postal_code: false
|
|
35
50
|
unofficial_names:
|
|
36
51
|
- United Arab Emirates
|
|
37
52
|
- الإمارات العربية المتحدة
|
|
@@ -40,25 +55,9 @@ AE:
|
|
|
40
55
|
- Emiratos Árabes Unidos
|
|
41
56
|
- アラブ首長国連邦
|
|
42
57
|
- Verenigde Arabische Emiraten
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
latitude_dec: '23.684776306152344'
|
|
50
|
-
longitude: 53.847818
|
|
51
|
-
longitude_dec: '54.536643981933594'
|
|
52
|
-
max_latitude: 26.0765
|
|
53
|
-
max_longitude: 56.4395001
|
|
54
|
-
min_latitude: 22.6315138
|
|
55
|
-
min_longitude: 51.4723
|
|
56
|
-
bounds:
|
|
57
|
-
northeast:
|
|
58
|
-
lat: 26.0765
|
|
59
|
-
lng: 56.4395001
|
|
60
|
-
southwest:
|
|
61
|
-
lat: 22.6315138
|
|
62
|
-
lng: 51.4723
|
|
63
|
-
currency_code: AED
|
|
64
|
-
start_of_week: sunday
|
|
58
|
+
vat_rates:
|
|
59
|
+
standard: 5
|
|
60
|
+
reduced: []
|
|
61
|
+
super_reduced:
|
|
62
|
+
parking:
|
|
63
|
+
world_region: EMEA
|
|
@@ -1,44 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
AF:
|
|
3
|
-
continent: Asia
|
|
4
3
|
alpha2: AF
|
|
5
4
|
alpha3: AFG
|
|
5
|
+
continent: Asia
|
|
6
6
|
country_code: '93'
|
|
7
|
-
|
|
8
|
-
ioc: AFG
|
|
7
|
+
currency_code: AFN
|
|
9
8
|
gec: AF
|
|
10
|
-
name: Afghanistan
|
|
11
|
-
national_destination_code_lengths:
|
|
12
|
-
- 2
|
|
13
|
-
national_number_lengths:
|
|
14
|
-
- 8
|
|
15
|
-
- 9
|
|
16
|
-
national_prefix: '0'
|
|
17
|
-
number: '004'
|
|
18
|
-
region: Asia
|
|
19
|
-
subregion: Southern Asia
|
|
20
|
-
world_region: APAC
|
|
21
|
-
un_locode: AF
|
|
22
|
-
nationality: Afghan
|
|
23
|
-
postal_code: true
|
|
24
|
-
postal_code_format: "\\d{4}"
|
|
25
|
-
unofficial_names:
|
|
26
|
-
- Afghanistan
|
|
27
|
-
- Afganistán
|
|
28
|
-
- アフガニスタン
|
|
29
|
-
languages_official:
|
|
30
|
-
- ps
|
|
31
|
-
- uz
|
|
32
|
-
- tk
|
|
33
|
-
languages_spoken:
|
|
34
|
-
- ps
|
|
35
|
-
- uz
|
|
36
|
-
- tk
|
|
37
9
|
geo:
|
|
38
10
|
latitude: 33.93911
|
|
39
|
-
latitude_dec: '33.833248138427734'
|
|
40
11
|
longitude: 67.709953
|
|
41
|
-
longitude_dec: '66.02528381347656'
|
|
42
12
|
max_latitude: 38.49087670000001
|
|
43
13
|
max_longitude: 74.8898619
|
|
44
14
|
min_latitude: 29.3772
|
|
@@ -50,5 +20,34 @@ AF:
|
|
|
50
20
|
southwest:
|
|
51
21
|
lat: 29.3772
|
|
52
22
|
lng: 60.5170005
|
|
53
|
-
|
|
23
|
+
international_prefix: '00'
|
|
24
|
+
ioc: AFG
|
|
25
|
+
iso_long_name: The Islamic Republic of Afghanistan
|
|
26
|
+
iso_short_name: Afghanistan
|
|
27
|
+
languages_official:
|
|
28
|
+
- ps
|
|
29
|
+
- uz
|
|
30
|
+
- tk
|
|
31
|
+
languages_spoken:
|
|
32
|
+
- ps
|
|
33
|
+
- uz
|
|
34
|
+
- tk
|
|
35
|
+
national_destination_code_lengths:
|
|
36
|
+
- 2
|
|
37
|
+
national_number_lengths:
|
|
38
|
+
- 8
|
|
39
|
+
- 9
|
|
40
|
+
national_prefix: '0'
|
|
41
|
+
nationality: Afghan
|
|
42
|
+
number: '004'
|
|
43
|
+
postal_code: true
|
|
44
|
+
postal_code_format: "\\d{4}"
|
|
45
|
+
region: Asia
|
|
54
46
|
start_of_week: monday
|
|
47
|
+
subregion: Southern Asia
|
|
48
|
+
un_locode: AF
|
|
49
|
+
unofficial_names:
|
|
50
|
+
- Afghanistan
|
|
51
|
+
- Afganistán
|
|
52
|
+
- アフガニスタン
|
|
53
|
+
world_region: APAC
|
|
@@ -1,26 +1,46 @@
|
|
|
1
1
|
---
|
|
2
2
|
AG:
|
|
3
|
-
continent: North America
|
|
4
3
|
alpha2: AG
|
|
5
4
|
alpha3: ATG
|
|
5
|
+
continent: North America
|
|
6
6
|
country_code: '1'
|
|
7
|
-
|
|
7
|
+
currency_code: XCD
|
|
8
|
+
gec: AC
|
|
9
|
+
geo:
|
|
10
|
+
latitude: 17.060816
|
|
11
|
+
longitude: -61.796428
|
|
12
|
+
max_latitude: 17.7499946
|
|
13
|
+
max_longitude: -61.6394
|
|
14
|
+
min_latitude: 16.9018
|
|
15
|
+
min_longitude: -62.38100009999999
|
|
16
|
+
bounds:
|
|
17
|
+
northeast:
|
|
18
|
+
lat: 17.7499946
|
|
19
|
+
lng: -61.6394
|
|
20
|
+
southwest:
|
|
21
|
+
lat: 16.9018
|
|
22
|
+
lng: -62.38100009999999
|
|
8
23
|
international_prefix: '011'
|
|
9
24
|
ioc: ANT
|
|
10
|
-
|
|
11
|
-
|
|
25
|
+
iso_long_name: Antigua and Barbuda
|
|
26
|
+
iso_short_name: Antigua and Barbuda
|
|
27
|
+
languages_official:
|
|
28
|
+
- en
|
|
29
|
+
languages_spoken:
|
|
30
|
+
- en
|
|
31
|
+
nanp_prefix: '1268'
|
|
12
32
|
national_destination_code_lengths:
|
|
13
33
|
- 3
|
|
14
34
|
national_number_lengths:
|
|
15
35
|
- 10
|
|
16
36
|
national_prefix: '1'
|
|
37
|
+
nationality: Antiguan, Barbudan
|
|
17
38
|
number: '028'
|
|
39
|
+
postal_code: false
|
|
18
40
|
region: Americas
|
|
41
|
+
start_of_week: monday
|
|
19
42
|
subregion: Caribbean
|
|
20
|
-
world_region: AMER
|
|
21
43
|
un_locode: AG
|
|
22
|
-
nationality: Antiguan, Barbudan
|
|
23
|
-
postal_code: false
|
|
24
44
|
unofficial_names:
|
|
25
45
|
- Antigua and Barbuda
|
|
26
46
|
- Antigua und Barbuda
|
|
@@ -28,25 +48,4 @@ AG:
|
|
|
28
48
|
- Antigua y Barbuda
|
|
29
49
|
- アンティグア・バーブーダ
|
|
30
50
|
- Antigua en Barbuda
|
|
31
|
-
|
|
32
|
-
- en
|
|
33
|
-
languages_spoken:
|
|
34
|
-
- en
|
|
35
|
-
geo:
|
|
36
|
-
latitude: 17.060816
|
|
37
|
-
latitude_dec: '17.09273910522461'
|
|
38
|
-
longitude: -61.796428
|
|
39
|
-
longitude_dec: "-61.81040954589844"
|
|
40
|
-
max_latitude: 17.7499946
|
|
41
|
-
max_longitude: -61.6394
|
|
42
|
-
min_latitude: 16.9018
|
|
43
|
-
min_longitude: -62.38100009999999
|
|
44
|
-
bounds:
|
|
45
|
-
northeast:
|
|
46
|
-
lat: 17.7499946
|
|
47
|
-
lng: -61.6394
|
|
48
|
-
southwest:
|
|
49
|
-
lat: 16.9018
|
|
50
|
-
lng: -62.38100009999999
|
|
51
|
-
currency_code: XCD
|
|
52
|
-
start_of_week: monday
|
|
51
|
+
world_region: AMER
|
|
@@ -1,39 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
AI:
|
|
3
|
-
continent: North America
|
|
4
3
|
alpha2: AI
|
|
5
4
|
alpha3: AIA
|
|
5
|
+
continent: North America
|
|
6
6
|
country_code: '1'
|
|
7
|
-
|
|
8
|
-
international_prefix: '011'
|
|
9
|
-
ioc:
|
|
7
|
+
currency_code: XCD
|
|
10
8
|
gec: AV
|
|
11
|
-
name: Anguilla
|
|
12
|
-
national_destination_code_lengths:
|
|
13
|
-
- 3
|
|
14
|
-
national_number_lengths:
|
|
15
|
-
- 10
|
|
16
|
-
national_prefix: '1'
|
|
17
|
-
number: '660'
|
|
18
|
-
region: Americas
|
|
19
|
-
subregion: Caribbean
|
|
20
|
-
world_region: AMER
|
|
21
|
-
un_locode: AI
|
|
22
|
-
nationality: Anguillian
|
|
23
|
-
postal_code: true
|
|
24
|
-
postal_code_format: "(?:AI-)?2640"
|
|
25
|
-
unofficial_names:
|
|
26
|
-
- Anguilla
|
|
27
|
-
- アンギラ
|
|
28
|
-
languages_official:
|
|
29
|
-
- en
|
|
30
|
-
languages_spoken:
|
|
31
|
-
- en
|
|
32
9
|
geo:
|
|
33
10
|
latitude: 18.220554
|
|
34
|
-
latitude_dec: '18.22646713256836'
|
|
35
11
|
longitude: -63.06861499999999
|
|
36
|
-
longitude_dec: "-63.0473518371582"
|
|
37
12
|
max_latitude: 18.6332326
|
|
38
13
|
max_longitude: -62.91999999999999
|
|
39
14
|
min_latitude: 18.1465043
|
|
@@ -45,5 +20,29 @@ AI:
|
|
|
45
20
|
southwest:
|
|
46
21
|
lat: 18.1465043
|
|
47
22
|
lng: -63.4803
|
|
48
|
-
|
|
23
|
+
international_prefix: '011'
|
|
24
|
+
ioc:
|
|
25
|
+
iso_long_name: Anguilla
|
|
26
|
+
iso_short_name: Anguilla
|
|
27
|
+
languages_official:
|
|
28
|
+
- en
|
|
29
|
+
languages_spoken:
|
|
30
|
+
- en
|
|
31
|
+
nanp_prefix: '1264'
|
|
32
|
+
national_destination_code_lengths:
|
|
33
|
+
- 3
|
|
34
|
+
national_number_lengths:
|
|
35
|
+
- 10
|
|
36
|
+
national_prefix: '1'
|
|
37
|
+
nationality: Anguillian
|
|
38
|
+
number: '660'
|
|
39
|
+
postal_code: true
|
|
40
|
+
postal_code_format: "(?:AI-)?2640"
|
|
41
|
+
region: Americas
|
|
49
42
|
start_of_week: monday
|
|
43
|
+
subregion: Caribbean
|
|
44
|
+
un_locode: AI
|
|
45
|
+
unofficial_names:
|
|
46
|
+
- Anguilla
|
|
47
|
+
- アンギラ
|
|
48
|
+
world_region: AMER
|