X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/3a8ddf736edf4d2fc1d772179600417adc357bbb..fbe40e005dfeecb937c92355492049dc4eb05f7d:/settings/country_settings.yaml diff --git a/settings/country_settings.yaml b/settings/country_settings.yaml index f170a28e..bda3b9e7 100644 --- a/settings/country_settings.yaml +++ b/settings/country_settings.yaml @@ -3,6 +3,8 @@ ad: partition: 35 languages: ca names: !include country-names/ad.yaml + postcode: + pattern: "ADddd" # United Arab Emirates (الإمارات العربية المتحدة) @@ -10,6 +12,7 @@ ae: partition: 83 languages: ar names: !include country-names/ae.yaml + postcode: no # Afghanistan (افغانستان) @@ -17,6 +20,8 @@ af: partition: 30 languages: fa, ps names: !include country-names/af.yaml + postcode: + pattern: "dddd" # Antigua and Barbuda (Antigua and Barbuda) @@ -24,6 +29,7 @@ ag: partition: 205 languages: en names: !include country-names/ag.yaml + postcode: no # Anguilla (Anguilla) @@ -31,6 +37,8 @@ ai: partition: 175 languages: en names: !include country-names/ai.yaml + postcode: + pattern: "AI-2640" # Albania (Shqipëria) @@ -38,6 +46,8 @@ al: partition: 9 languages: sq names: !include country-names/al.yaml + postcode: + pattern: "dddd" # Armenia (Հայաստան) @@ -45,13 +55,8 @@ am: partition: 33 languages: hy names: !include country-names/am.yaml - - -# Netherlands Antilles (De Nederlandse Antillen) -an: - partition: 58 - languages: nl, en, pap - names: !include country-names/an.yaml + postcode: + pattern: "dddd" # Angola (Angola) @@ -59,13 +64,7 @@ ao: partition: 85 languages: pt names: !include country-names/ao.yaml - - -# (Antarctica) -aq: - partition: 181 - languages: en, es, fr, ru - names: !include country-names/aq.yaml + postcode: no # Argentina (Argentina) @@ -73,13 +72,8 @@ ar: partition: 39 languages: es names: !include country-names/ar.yaml - - -# (American Samoa) -as: - partition: 182 - languages: en, sm - names: !include country-names/as.yaml + postcode: + pattern: "l?dddd(?:lll)?" # Austria (Österreich) @@ -87,6 +81,8 @@ at: partition: 245 languages: de names: !include country-names/at.yaml + postcode: + pattern: "dddd" # Australia (Australia) @@ -94,20 +90,8 @@ au: partition: 139 languages: en names: !include country-names/au.yaml - - -# (Aruba) -aw: - partition: 183 - languages: nl, pap - names: !include country-names/aw.yaml - - -# (Aland Islands) -ax: - partition: 184 - languages: sv - names: !include country-names/ax.yaml + postcode: + pattern: "dddd" # Azerbaijan (Azərbaycan) @@ -115,6 +99,8 @@ az: partition: 119 languages: az names: !include country-names/az.yaml + postcode: + pattern: "dddd" # Bosnia and Herzegovina (Bosna i Hercegovina / Босна и Херцеговина) @@ -122,6 +108,8 @@ ba: partition: 6 languages: bs, hr, sr names: !include country-names/ba.yaml + postcode: + pattern: "ddddd" # Barbados (Barbados) @@ -129,6 +117,9 @@ bb: partition: 206 languages: en names: !include country-names/bb.yaml + postcode: + pattern: "(ddddd)" + output: BB\1 # Bangladesh (Bangladesh) @@ -136,6 +127,8 @@ bd: partition: 158 languages: bn names: !include country-names/bd.yaml + postcode: + pattern: "dddd" # Belgium (België / Belgique / Belgien) @@ -143,6 +136,8 @@ be: partition: 15 languages: nl, fr, de names: !include country-names/be.yaml + postcode: + pattern: "dddd" # Burkina Faso (Burkina Faso) @@ -150,6 +145,7 @@ bf: partition: 225 languages: fr names: !include country-names/bf.yaml + postcode: no # Bulgaria (Бългaрия) @@ -157,6 +153,8 @@ bg: partition: 140 languages: bg names: !include country-names/bg.yaml + postcode: + pattern: "dddd" # Bahrain (البحرين) @@ -164,6 +162,8 @@ bh: partition: 62 languages: ar names: !include country-names/bh.yaml + postcode: + pattern: "d?ddd" # Burundi (Burundi) @@ -171,6 +171,7 @@ bi: partition: 61 languages: fr names: !include country-names/bi.yaml + postcode: no # Benin (Bénin) @@ -178,13 +179,7 @@ bj: partition: 224 languages: fr names: !include country-names/bj.yaml - - -# (Saint Barthélemy) -bl: - partition: 204 - languages: fr - names: !include country-names/bl.yaml + postcode: no # Bermuda (Bermuda) @@ -192,6 +187,9 @@ bm: partition: 176 languages: en names: !include country-names/bm.yaml + postcode: + pattern: "(ll)[ -]?(dd)" + output: \1 \2 # Brunei (Brunei) @@ -199,6 +197,9 @@ bn: partition: 86 languages: ms names: !include country-names/bn.yaml + postcode: + pattern: "(ll) ?(dddd)" + output: \1\2 # Bolivia (Bolivia) @@ -206,13 +207,7 @@ bo: partition: 120 languages: es, qu, gn, ay names: !include country-names/bo.yaml - - -# Caribbean Netherlands (Caribisch Nederland) -bq: - partition: 250 - languages: nl - names: !include country-names/bq.yaml + postcode: no # Brazil (Brasil) @@ -220,6 +215,9 @@ br: partition: 121 languages: pt names: !include country-names/br.yaml + postcode: + pattern: "(ddddd)-?(ddd)" + output: \1-\2 # The Bahamas (The Bahamas) @@ -227,6 +225,7 @@ bs: partition: 207 languages: en names: !include country-names/bs.yaml + postcode: no # Bhutan (འབྲུག་ཡུལ་) @@ -234,13 +233,8 @@ bt: partition: 87 languages: dz names: !include country-names/bt.yaml - - -# (Bouvet Island) -bv: - partition: 185 - languages: "no" - names: !include country-names/bv.yaml + postcode: + pattern: "ddddd" # Botswana (Botswana) @@ -248,6 +242,7 @@ bw: partition: 122 languages: en, tn names: !include country-names/bw.yaml + postcode: no # Belarus (Беларусь) @@ -255,6 +250,8 @@ by: partition: 40 languages: be, ru names: !include country-names/by.yaml + postcode: + pattern: "dddddd" # Belize (Belize) @@ -262,6 +259,7 @@ bz: partition: 208 languages: en names: !include country-names/bz.yaml + postcode: no # Canada (Canada) @@ -269,13 +267,9 @@ ca: partition: 244 languages: en, fr names: !include country-names/ca.yaml - - -# Cocos (Keeling) Islands (Cocos (Keeling) Islands) -cc: - partition: 118 - languages: en - names: !include country-names/cc.yaml + postcode: + pattern: "(ldl) ?(dld)" + output: \1 \2 # Democratic Republic of the Congo (République démocratique du Congo) @@ -283,6 +277,7 @@ cd: partition: 229 languages: fr names: !include country-names/cd.yaml + postcode: no # Central African Republic (Ködörösêse tî Bêafrîka - République Centrafricaine) @@ -290,6 +285,7 @@ cf: partition: 227 languages: fr, sg names: !include country-names/cf.yaml + postcode: no # Congo-Brazzaville (Congo) @@ -297,6 +293,7 @@ cg: partition: 230 languages: fr names: !include country-names/cg.yaml + postcode: no # Switzerland (Schweiz/Suisse/Svizzera/Svizra) @@ -304,6 +301,8 @@ ch: partition: 5 languages: de, fr, it, rm names: !include country-names/ch.yaml + postcode: + pattern: "dddd" # Côte d'Ivoire (Côte d’Ivoire) @@ -311,6 +310,7 @@ ci: partition: 228 languages: fr names: !include country-names/ci.yaml + postcode: no # Cook Islands (Kūki 'Āirani) @@ -318,6 +318,7 @@ ck: partition: 41 languages: en, rar names: !include country-names/ck.yaml + postcode: no # Chile (Chile) @@ -325,6 +326,8 @@ cl: partition: 88 languages: es names: !include country-names/cl.yaml + postcode: + pattern: "ddddddd" # Cameroon (Cameroun) @@ -332,6 +335,7 @@ cm: partition: 141 languages: fr, en names: !include country-names/cm.yaml + postcode: no # China (中国) @@ -339,6 +343,8 @@ cn: partition: 117 languages: zh names: !include country-names/cn.yaml + postcode: + pattern: "dddddd" # Colombia (Colombia) @@ -346,6 +352,8 @@ co: partition: 133 languages: es names: !include country-names/co.yaml + postcode: + pattern: "dddddd" # Costa Rica (Costa Rica) @@ -353,6 +361,8 @@ cr: partition: 64 languages: es names: !include country-names/cr.yaml + postcode: + pattern: "ddddd" # Cuba (Cuba) @@ -360,6 +370,8 @@ cu: partition: 42 languages: es names: !include country-names/cu.yaml + postcode: + pattern: "ddddd" # Cape Verde (Cabo Verde) @@ -367,20 +379,8 @@ cv: partition: 89 languages: pt names: !include country-names/cv.yaml - - -# Curaçao (Curaçao) -cw: - partition: 248 - languages: nl, en - names: !include country-names/cw.yaml - - -# Christmas Island (Christmas Island) -cx: - partition: 177 - languages: en - names: !include country-names/cx.yaml + postcode: + pattern: "dddd" # Cyprus (Κύπρος - Kıbrıs) @@ -388,6 +388,8 @@ cy: partition: 114 languages: el, tr names: !include country-names/cy.yaml + postcode: + pattern: "(?:99|d)ddd" # Czechia (Česko) @@ -395,6 +397,9 @@ cz: partition: 124 languages: cs names: !include country-names/cz.yaml + postcode: + pattern: "(ddd) ?(dd)" + output: \1 \2 # Germany (Deutschland) @@ -402,6 +407,8 @@ de: partition: 3 languages: de names: !include country-names/de.yaml + postcode: + pattern: "ddddd" # Djibouti (Djibouti جيبوتي) @@ -409,6 +416,7 @@ dj: partition: 43 languages: fr, ar, so, aa names: !include country-names/dj.yaml + postcode: no # Denmark (Danmark) @@ -416,6 +424,8 @@ dk: partition: 160 languages: da names: !include country-names/dk.yaml + postcode: + pattern: "dddd" # Dominica (Dominica) @@ -423,6 +433,7 @@ dm: partition: 209 languages: en names: !include country-names/dm.yaml + postcode: no # Dominican Republic (República Dominicana) @@ -430,6 +441,8 @@ do: partition: 37 languages: es names: !include country-names/do.yaml + postcode: + pattern: "ddddd" # Algeria (Algérie / ⵍⵣⵣⴰⵢⴻⵔ / الجزائر) @@ -437,6 +450,8 @@ dz: partition: 19 languages: ar, ber, fr names: !include country-names/dz.yaml + postcode: + pattern: "ddddd" # Ecuador (Ecuador) @@ -444,6 +459,8 @@ ec: partition: 78 languages: es names: !include country-names/ec.yaml + postcode: + pattern: "dddddd" # Estonia (Eesti) @@ -451,6 +468,8 @@ ee: partition: 125 languages: et names: !include country-names/ee.yaml + postcode: + pattern: "ddddd" # Egypt (مصر) @@ -458,6 +477,8 @@ eg: partition: 16 languages: ar names: !include country-names/eg.yaml + postcode: + pattern: "ddddd" # Sahrawi Arab Democratic Republic (الجمهورية العربية الصحراوية الديمقراطية) @@ -472,6 +493,7 @@ er: partition: 142 languages: ti, ar, en names: !include country-names/er.yaml + postcode: no # Spain (España) @@ -479,6 +501,8 @@ es: partition: 31 languages: es, ast, ca, eu, gl names: !include country-names/es.yaml + postcode: + pattern: "ddddd" # Ethiopia (ኢትዮጵያ) @@ -486,6 +510,8 @@ et: partition: 90 languages: am, om names: !include country-names/et.yaml + postcode: + pattern: "dddd" # Finland (Suomi) @@ -493,6 +519,8 @@ fi: partition: 20 languages: fi, sv, se names: !include country-names/fi.yaml + postcode: + pattern: "ddddd" # Fiji (Viti) @@ -500,6 +528,7 @@ fj: partition: 210 languages: en names: !include country-names/fj.yaml + postcode: no # Falkland Islands (Falkland Islands) @@ -507,6 +536,8 @@ fk: partition: 91 languages: en names: !include country-names/fk.yaml + postcode: + pattern: "FIQQ 1ZZ" # Federated States of Micronesia (Micronesia) @@ -514,6 +545,8 @@ fm: partition: 217 languages: en names: !include country-names/fm.yaml + postcode: + pattern: "ddddd" # Faroe Islands (Føroyar) @@ -521,6 +554,8 @@ fo: partition: 10 languages: fo, da names: !include country-names/fo.yaml + postcode: + pattern: "ddd" # France (France) @@ -528,6 +563,8 @@ fr: partition: 4 languages: fr names: !include country-names/fr.yaml + postcode: + pattern: "ddddd" # Gabon (Gabon) @@ -535,6 +572,7 @@ ga: partition: 239 languages: fr names: !include country-names/ga.yaml + postcode: no # United Kingdom (United Kingdom) @@ -542,6 +580,9 @@ gb: partition: 1 languages: en names: !include country-names/gb.yaml + postcode: + pattern: "(l?ld[A-Z0-9]?) ?(dll)" + output: \1 \2 # Grenada (Grenada) @@ -549,6 +590,7 @@ gd: partition: 143 languages: en names: !include country-names/gd.yaml + postcode: no # Georgia (საქართველო) @@ -556,13 +598,8 @@ ge: partition: 21 languages: ka names: !include country-names/ge.yaml - - -# French Guiana (Guyane Française) -gf: - partition: 231 - languages: fr - names: !include country-names/gf.yaml + postcode: + pattern: "dddd" # Guernsey (Guernsey) @@ -570,6 +607,9 @@ gg: partition: 77 languages: en names: !include country-names/gg.yaml + postcode: + pattern: "(GYdd?) ?(dll)" + output: \1 \2 # Ghana (Ghana) @@ -577,6 +617,8 @@ gh: partition: 211 languages: en names: !include country-names/gh.yaml + postcode: + pattern: "ll-d?ddd-dddd" # Gibraltar (Gibraltar) @@ -584,6 +626,9 @@ gi: partition: 138 languages: en names: !include country-names/gi.yaml + postcode: + pattern: "(GX11) ?(1AA)" + output: GX11 1AA # Greenland (Kalaallit Nunaat) @@ -591,6 +636,8 @@ gl: partition: 111 languages: kl, da names: !include country-names/gl.yaml + postcode: + pattern: "dddd" # The Gambia (Gambia) @@ -598,6 +645,7 @@ gm: partition: 212 languages: en names: !include country-names/gm.yaml + postcode: no # Guinea (Guinée) @@ -605,13 +653,8 @@ gn: partition: 240 languages: fr names: !include country-names/gn.yaml - - -# Guadeloupe (Guadeloupe) -gp: - partition: 232 - languages: fr - names: !include country-names/gp.yaml + postcode: + pattern: "ddd" # Equatorial Guinea (Guinea Ecuatorial) @@ -619,6 +662,7 @@ gq: partition: 12 languages: es, fr, pt names: !include country-names/gq.yaml + postcode: no # Greece (Ελλάς) @@ -626,6 +670,9 @@ gr: partition: 22 languages: el names: !include country-names/gr.yaml + postcode: + pattern: "(ddd) ?(dd)" + output: \1 \2 # South Georgia and the South Sandwich Islands (South Georgia and the South Sandwich Islands) @@ -633,6 +680,9 @@ gs: partition: 44 languages: en names: !include country-names/gs.yaml + postcode: + pattern: "(SIQQ) ?(1ZZ)" + output: \1 \2 # Guatemala (Guatemala) @@ -640,13 +690,8 @@ gt: partition: 57 languages: es names: !include country-names/gt.yaml - - -# Guam (Guam) -gu: - partition: 187 - languages: en, ch - names: !include country-names/gu.yaml + postcode: + pattern: "ddddd" # Guinea-Bissau (Guiné-Bissau) @@ -654,6 +699,8 @@ gw: partition: 8 languages: pt names: !include country-names/gw.yaml + postcode: + pattern: "dddd" # Guyana (Guyana) @@ -661,20 +708,7 @@ gy: partition: 213 languages: en names: !include country-names/gy.yaml - - -# (Hong Kong) -hk: - partition: 188 - languages: zh-hant, en - names: !include country-names/hk.yaml - - -# (Heard Island and MaxDonald Islands) -hm: - partition: 189 - languages: en - names: !include country-names/hm.yaml + postcode: no # Honduras (Honduras) @@ -682,6 +716,8 @@ hn: partition: 56 languages: es names: !include country-names/hn.yaml + postcode: + pattern: "ddddd" # Croatia (Hrvatska) @@ -689,6 +725,8 @@ hr: partition: 92 languages: hr names: !include country-names/hr.yaml + postcode: + pattern: "ddddd" # Haiti (Ayiti) @@ -696,6 +734,8 @@ ht: partition: 29 languages: fr, ht names: !include country-names/ht.yaml + postcode: + pattern: "dddd" # Hungary (Magyarország) @@ -703,6 +743,8 @@ hu: partition: 45 languages: hu names: !include country-names/hu.yaml + postcode: + pattern: "dddd" # Indonesia (Indonesia) @@ -710,6 +752,8 @@ id: partition: 110 languages: id names: !include country-names/id.yaml + postcode: + pattern: "ddddd" # Ireland (Éire / Ireland) @@ -717,6 +761,9 @@ ie: partition: 46 languages: en, ga names: !include country-names/ie.yaml + postcode: + pattern: "(ldd) ?([0123456789ACDEFHKNPRTVWXY]{4})" + output: \1 \2 # Israel (ישראל) @@ -724,6 +771,8 @@ il: partition: 65 languages: he names: !include country-names/il.yaml + postcode: + pattern: "ddddddd" # Isle of Man (Isle of Man) @@ -731,6 +780,9 @@ im: partition: 190 languages: en names: !include country-names/im.yaml + postcode: + pattern: "(IMdd?) ?(dll)" + output: \1 \2 # India (India) @@ -738,6 +790,9 @@ in: partition: 128 languages: hi, en names: !include country-names/in.yaml + postcode: + pattern: "(ddd) ?(ddd)" + output: \1\2 # British Indian Ocean Territory (British Indian Ocean Territory) @@ -745,6 +800,9 @@ io: partition: 13 languages: en names: !include country-names/io.yaml + postcode: + pattern: "(BBND) ?(1ZZ)" + output: \1 \2 # Iraq (العراق) @@ -752,6 +810,8 @@ iq: partition: 144 languages: ar, ku names: !include country-names/iq.yaml + postcode: + pattern: "ddddd" # Iran (ایران) @@ -759,6 +819,9 @@ ir: partition: 80 languages: fa names: !include country-names/ir.yaml + postcode: + pattern: "(ddddd)[-_ ]?(ddddd)" + output: \1-\2 # Iceland (Ísland) @@ -766,6 +829,8 @@ is: partition: 134 languages: is names: !include country-names/is.yaml + postcode: + pattern: "ddd" # Italy (Italia) @@ -773,6 +838,8 @@ it: partition: 28 languages: it, de, fr names: !include country-names/it.yaml + postcode: + pattern: "ddddd" # Jersey (Jersey) @@ -780,6 +847,9 @@ je: partition: 123 languages: en names: !include country-names/je.yaml + postcode: + pattern: "(JEdd?) ?(dll)" + output: \1 \2 # Jamaica (Jamaica) @@ -787,6 +857,7 @@ jm: partition: 214 languages: en names: !include country-names/jm.yaml + postcode: no # Jordan (الأردن) @@ -794,6 +865,8 @@ jo: partition: 17 languages: ar names: !include country-names/jo.yaml + postcode: + pattern: "ddddd" # Japan (日本) @@ -801,6 +874,9 @@ jp: partition: 11 languages: ja names: !include country-names/jp.yaml + postcode: + pattern: "(ddd)-?(dddd)" + output: \1-\2 # Kenya (Kenya) @@ -808,6 +884,8 @@ ke: partition: 126 languages: sw, en names: !include country-names/ke.yaml + postcode: + pattern: "ddddd" # Kyrgyzstan (Кыргызстан) @@ -815,6 +893,8 @@ kg: partition: 93 languages: ky, ru names: !include country-names/kg.yaml + postcode: + pattern: "dddddd" # Cambodia (ព្រះរាជាណាចក្រ​កម្ពុជា) @@ -822,6 +902,8 @@ kh: partition: 159 languages: km names: !include country-names/kh.yaml + postcode: + pattern: "dddddd" # Kiribati (Kiribati) @@ -829,6 +911,7 @@ ki: partition: 215 languages: en names: !include country-names/ki.yaml + postcode: no # Comoros (Comores Komori جزر القمر) @@ -836,6 +919,7 @@ km: partition: 47 languages: ar, fr, sw names: !include country-names/km.yaml + postcode: no # Saint Kitts and Nevis (Saint Kitts and Nevis) @@ -843,6 +927,8 @@ kn: partition: 84 languages: en names: !include country-names/kn.yaml + postcode: + pattern: "dddd" # North Korea (조선민주주의인민공화국) @@ -850,6 +936,7 @@ kp: partition: 48 languages: ko names: !include country-names/kp.yaml + postcode: no # South Korea (대한민국) @@ -857,6 +944,8 @@ kr: partition: 49 languages: ko, en names: !include country-names/kr.yaml + postcode: + pattern: "ddddd" # Kuwait (الكويت) @@ -864,6 +953,8 @@ kw: partition: 127 languages: ar names: !include country-names/kw.yaml + postcode: + pattern: "ddddd" # Cayman Islands (Cayman Islands) @@ -871,6 +962,8 @@ ky: partition: 38 languages: en names: !include country-names/ky.yaml + postcode: + pattern: "KYd-dddd" # Kazakhstan (Қазақстан) @@ -878,6 +971,8 @@ kz: partition: 94 languages: kk, ru names: !include country-names/kz.yaml + postcode: + pattern: "(?:lddldld|dddddd)" # Laos (ປະເທດລາວ) @@ -885,6 +980,8 @@ la: partition: 145 languages: lo names: !include country-names/la.yaml + postcode: + pattern: "ddddd" # Lebanon (لبنان) @@ -892,6 +989,8 @@ lb: partition: 66 languages: ar, fr names: !include country-names/lb.yaml + postcode: + pattern: "(dddd)(?: ?dddd)?" # Saint Lucia (Saint Lucia) @@ -899,6 +998,9 @@ lc: partition: 146 languages: en names: !include country-names/lc.yaml + postcode: + pattern: "LC(dd) ?(ddd)" + output: LC\1 \2 # Liechtenstein (Liechtenstein) @@ -906,6 +1008,8 @@ li: partition: 246 languages: de names: !include country-names/li.yaml + postcode: + pattern: "dddd" # Sri Lanka (ශ්‍රී ලංකාව இலங்கை) @@ -913,6 +1017,8 @@ lk: partition: 95 languages: si, ta names: !include country-names/lk.yaml + postcode: + pattern: "ddddd" # Liberia (Liberia) @@ -920,6 +1026,8 @@ lr: partition: 216 languages: en names: !include country-names/lr.yaml + postcode: + pattern: "dddd" # Lesotho (Lesotho) @@ -927,6 +1035,8 @@ ls: partition: 136 languages: en, st names: !include country-names/ls.yaml + postcode: + pattern: "ddd" # Lithuania (Lietuva) @@ -934,6 +1044,8 @@ lt: partition: 67 languages: lt names: !include country-names/lt.yaml + postcode: + pattern: "ddddd" # Luxembourg (Lëtzebuerg) @@ -941,6 +1053,8 @@ lu: partition: 74 languages: lb, fr, de names: !include country-names/lu.yaml + postcode: + pattern: "dddd" # Latvia (Latvija) @@ -948,6 +1062,8 @@ lv: partition: 162 languages: lv names: !include country-names/lv.yaml + postcode: + pattern: "LV-dddd" # Libya (ليبيا) @@ -955,6 +1071,7 @@ ly: partition: 163 languages: ar names: !include country-names/ly.yaml + postcode: no # Morocco (Maroc ⵍⵎⵖⵔⵉⴱ المغرب) @@ -962,6 +1079,8 @@ ma: partition: 23 languages: fr, zgh, ar names: !include country-names/ma.yaml + postcode: + pattern: "ddddd" # Monaco (Monaco) @@ -969,6 +1088,8 @@ mc: partition: 242 languages: fr names: !include country-names/mc.yaml + postcode: + pattern: "980dd" # Moldova (Moldova) @@ -976,6 +1097,8 @@ md: partition: 147 languages: ro, ru, uk names: !include country-names/md.yaml + postcode: + pattern: "MD-dddd" # Montenegro (Crna Gora / Црна Гора) @@ -983,13 +1106,8 @@ me: partition: 180 languages: srp, sr, hr, bs, sq names: !include country-names/me.yaml - - -# Saint Martin (Saint Martin) -mf: - partition: 203 - languages: fr - names: !include country-names/mf.yaml + postcode: + pattern: "ddddd" # Madagascar (Madagasikara) @@ -997,6 +1115,8 @@ mg: partition: 164 languages: mg, fr names: !include country-names/mg.yaml + postcode: + pattern: "ddd" # Marshall Islands (Ṃajeḷ) @@ -1004,6 +1124,8 @@ mh: partition: 105 languages: en, mh names: !include country-names/mh.yaml + postcode: + pattern: "ddddd" # North Macedonia (Северна Македонија) @@ -1011,6 +1133,8 @@ mk: partition: 69 languages: mk names: !include country-names/mk.yaml + postcode: + pattern: "dddd" # Mali (Mali) @@ -1018,6 +1142,7 @@ ml: partition: 241 languages: fr names: !include country-names/ml.yaml + postcode: no # Myanmar (မြန်မာ) @@ -1025,6 +1150,8 @@ mm: partition: 148 languages: my names: !include country-names/mm.yaml + postcode: + pattern: "ddddd" # Mongolia (Монгол улс ᠮᠤᠩᠭᠤᠯ ᠤᠯᠤᠰ) @@ -1032,27 +1159,8 @@ mn: partition: 167 languages: mn names: !include country-names/mn.yaml - - -# Macao (Macao) -mo: - partition: 191 - languages: zh-hant, pt - names: !include country-names/mo.yaml - - -# Northern Mariana Islands (Northern Mariana Islands) -mp: - partition: 192 - languages: ch, en - names: !include country-names/mp.yaml - - -# Martinique (Martinique) -mq: - partition: 233 - languages: fr - names: !include country-names/mq.yaml + postcode: + pattern: "ddddd" # Mauritania (موريتانيا) @@ -1060,6 +1168,7 @@ mr: partition: 149 languages: ar, fr names: !include country-names/mr.yaml + postcode: no # Montserrat (Montserrat) @@ -1074,6 +1183,9 @@ mt: partition: 165 languages: mt, en names: !include country-names/mt.yaml + postcode: + pattern: "(lll) ?(dddd)" + output: \1 \2 # Mauritius (Mauritius) @@ -1081,6 +1193,8 @@ mu: partition: 150 languages: mfe, fr, en names: !include country-names/mu.yaml + postcode: + pattern: "ddddd" # Maldives (ދިވެހިރާއްޖެ) @@ -1088,6 +1202,8 @@ mv: partition: 96 languages: dv names: !include country-names/mv.yaml + postcode: + pattern: "ddddd" # Malawi (Malawi) @@ -1095,6 +1211,7 @@ mw: partition: 97 languages: en, ny names: !include country-names/mw.yaml + postcode: no # Mexico (México) @@ -1102,6 +1219,8 @@ mx: partition: 166 languages: es names: !include country-names/mx.yaml + postcode: + pattern: "ddddd" # Malaysia (Malaysia) @@ -1109,6 +1228,8 @@ my: partition: 7 languages: ms names: !include country-names/my.yaml + postcode: + pattern: "ddddd" # Mozambique (Moçambique) @@ -1116,6 +1237,8 @@ mz: partition: 98 languages: pt names: !include country-names/mz.yaml + postcode: + pattern: "(dddd)(?:-dd)?" # Namibia (Namibia) @@ -1123,13 +1246,8 @@ na: partition: 99 languages: en, sf, de names: !include country-names/na.yaml - - -# New Caledonia (Nouvelle-Calédonie) -nc: - partition: 234 - languages: fr - names: !include country-names/nc.yaml + postcode: + pattern: "ddddd" # Niger (Niger) @@ -1137,13 +1255,8 @@ ne: partition: 226 languages: fr names: !include country-names/ne.yaml - - -# Norfolk Island (Norfolk Island) -nf: - partition: 100 - languages: en, pih - names: !include country-names/nf.yaml + postcode: + pattern: "dddd" # Nigeria (Nigeria) @@ -1151,6 +1264,8 @@ ng: partition: 218 languages: en names: !include country-names/ng.yaml + postcode: + pattern: "dddddd" # Nicaragua (Nicaragua) @@ -1158,6 +1273,8 @@ ni: partition: 151 languages: es names: !include country-names/ni.yaml + postcode: + pattern: "ddddd" # Netherlands (Nederland) @@ -1165,6 +1282,9 @@ nl: partition: 63 languages: nl names: !include country-names/nl.yaml + postcode: + pattern: "(dddd) ?(ll)" + output: \1 \2 # Norway (Norge) @@ -1172,6 +1292,8 @@ nl: partition: 60 languages: nb, nn, no, se names: !include country-names/no.yaml + postcode: + pattern: "dddd" # Nepal (Nepal) @@ -1179,6 +1301,8 @@ np: partition: 50 languages: ne names: !include country-names/np.yaml + postcode: + pattern: "ddddd" # Nauru (Naoero) @@ -1186,6 +1310,7 @@ nr: partition: 70 languages: na, en names: !include country-names/nr.yaml + postcode: no # Niue (Niuē) @@ -1193,6 +1318,7 @@ nu: partition: 178 languages: niu, en names: !include country-names/nu.yaml + postcode: no # New Zealand (New Zealand / Aotearoa) @@ -1200,6 +1326,8 @@ nz: partition: 27 languages: mi, en names: !include country-names/nz.yaml + postcode: + pattern: "dddd" # Oman (عمان) @@ -1207,6 +1335,8 @@ om: partition: 137 languages: ar names: !include country-names/om.yaml + postcode: + pattern: "ddd" # Panama (Panamá) @@ -1214,6 +1344,8 @@ pa: partition: 152 languages: es names: !include country-names/pa.yaml + postcode: + pattern: "dddd" # Peru (Perú) @@ -1221,13 +1353,8 @@ pe: partition: 51 languages: es names: !include country-names/pe.yaml - - -# French Polynesia (Polynésie française) -pf: - partition: 202 - languages: fr - names: !include country-names/pf.yaml + postcode: + pattern: "ddddd" # Papua New Guinea (Papua Niugini) @@ -1235,6 +1362,8 @@ pg: partition: 71 languages: en, tpi, ho names: !include country-names/pg.yaml + postcode: + pattern: "ddd" # Philippines (Philippines) @@ -1242,13 +1371,17 @@ ph: partition: 26 languages: en, tl names: !include country-names/ph.yaml + postcode: + pattern: "dddd" # Pakistan (پاکستان) pk: partition: 14 - languages: en, ur + languages: en, ur, pnb, sd, ps, bal names: !include country-names/pk.yaml + postcode: + pattern: "ddddd" # Poland (Polska) @@ -1256,13 +1389,9 @@ pl: partition: 168 languages: pl names: !include country-names/pl.yaml - - -# Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon) -pm: - partition: 236 - languages: fr - names: !include country-names/pm.yaml + postcode: + pattern: "(dd)[ -]?(ddd)" + output: \1-\2 # Pitcairn Islands (Pitcairn Islands) @@ -1270,13 +1399,9 @@ pn: partition: 113 languages: en, pih names: !include country-names/pn.yaml - - -# Puerto Rico (Puerto Rico) -pr: - partition: 193 - languages: es, en - names: !include country-names/pr.yaml + postcode: + pattern: "(PCRN) ?(1ZZ)" + output: \1 \2 # Palestinian Territory (Palestinian Territory) @@ -1284,6 +1409,8 @@ ps: partition: 194 languages: ar, he names: !include country-names/ps.yaml + postcode: + pattern: "ddd" # Portugal (Portugal) @@ -1291,6 +1418,8 @@ pt: partition: 34 languages: pt names: !include country-names/pt.yaml + postcode: + pattern: "dddd(?:-ddd)?" # Palau (Belau) @@ -1298,6 +1427,8 @@ pw: partition: 195 languages: en, pau, ja, sov, tox names: !include country-names/pw.yaml + postcode: + pattern: "969(39|40)" # Paraguay (Paraguay) @@ -1305,6 +1436,8 @@ py: partition: 101 languages: es, gn names: !include country-names/py.yaml + postcode: + pattern: "dddddd" # Qatar (قطر) @@ -1312,13 +1445,7 @@ qa: partition: 169 languages: ar names: !include country-names/qa.yaml - - -# (Réunion) -re: - partition: 235 - languages: fr - names: !include country-names/re.yaml + postcode: no # Romania (România) @@ -1326,6 +1453,8 @@ ro: partition: 170 languages: ro names: !include country-names/ro.yaml + postcode: + pattern: "dddddd" # Serbia (Србија) @@ -1333,6 +1462,8 @@ rs: partition: 59 languages: sr names: !include country-names/rs.yaml + postcode: + pattern: "ddddd" # Russia (Россия) @@ -1340,6 +1471,8 @@ ru: partition: 135 languages: ru names: !include country-names/ru.yaml + postcode: + pattern: "dddddd" # Rwanda (Rwanda) @@ -1347,6 +1480,7 @@ rw: partition: 102 languages: rw, fr, en names: !include country-names/rw.yaml + postcode: no # Saudi Arabia (السعودية) @@ -1354,6 +1488,8 @@ sa: partition: 52 languages: ar names: !include country-names/sa.yaml + postcode: + pattern: "ddddd(?:-dddd)?" # Solomon Islands (Solomon Islands) @@ -1361,6 +1497,7 @@ sb: partition: 201 languages: en names: !include country-names/sb.yaml + postcode: no # Seychelles (Sesel) @@ -1368,6 +1505,7 @@ sc: partition: 79 languages: fr, en, crs names: !include country-names/sc.yaml + postcode: no # Sudan (السودان) @@ -1375,6 +1513,8 @@ sd: partition: 72 languages: ar, en names: !include country-names/sd.yaml + postcode: + pattern: "ddddd" # Sweden (Sverige) @@ -1382,6 +1522,9 @@ se: partition: 112 languages: sv names: !include country-names/se.yaml + postcode: + pattern: "(ddd) ?(dd)" + output: \1 \2 # Singapore (Singapore) @@ -1389,6 +1532,8 @@ sg: partition: 115 languages: zh-hans, en, ms, ta names: !include country-names/sg.yaml + postcode: + pattern: "dddddd" # Saint Helena, Ascension and Tristan da Cunha (Saint Helena, Ascension and Tristan da Cunha) @@ -1396,6 +1541,9 @@ sh: partition: 196 languages: en names: !include country-names/sh.yaml + postcode: + pattern: "(ASCN|STHL|TDCU) ?(1ZZ)" + output: \1 \2 # Slovenia (Slovenija) @@ -1403,13 +1551,8 @@ si: partition: 36 languages: sl names: !include country-names/si.yaml - - -# (Svalbard and Jan Mayen) -sj: - partition: 197 - languages: "no" - names: !include country-names/sj.yaml + postcode: + pattern: "dddd" # Slovakia (Slovensko) @@ -1417,6 +1560,9 @@ sk: partition: 172 languages: sk names: !include country-names/sk.yaml + postcode: + pattern: "(ddd) ?(dd)" + output: \1 \2 # Sierra Leone (Sierra Leone) @@ -1424,6 +1570,7 @@ sl: partition: 219 languages: en names: !include country-names/sl.yaml + postcode: no # San Marino (San Marino) @@ -1431,6 +1578,8 @@ sm: partition: 153 languages: it names: !include country-names/sm.yaml + postcode: + pattern: "4789d" # Senegal (Sénégal) @@ -1438,6 +1587,8 @@ sn: partition: 237 languages: fr names: !include country-names/sn.yaml + postcode: + pattern: "ddddd" # Somalia (Soomaaliya الصومال) @@ -1445,6 +1596,9 @@ so: partition: 154 languages: so, ar names: !include country-names/so.yaml + postcode: + pattern: "(ll) ?(ddddd)" + output: \1 \2 # Suriname (Suriname) @@ -1452,6 +1606,7 @@ sr: partition: 24 languages: nl names: !include country-names/sr.yaml + postcode: no # South Sudan (South Sudan) @@ -1459,6 +1614,7 @@ ss: partition: 247 languages: en names: !include country-names/ss.yaml + postcode: no # São Tomé and Príncipe (São Tomé e Príncipe) @@ -1466,6 +1622,7 @@ st: partition: 53 languages: pt names: !include country-names/st.yaml + postcode: no # El Salvador (El Salvador) @@ -1473,13 +1630,8 @@ sv: partition: 103 languages: es names: !include country-names/sv.yaml - - -# (Sint Maarten) -sx: - partition: 249 - languages: nl, en - names: !include country-names/sx.yaml + postcode: + pattern: "dddd" # Syria (سوريا) @@ -1487,6 +1639,7 @@ sy: partition: 104 languages: ar names: !include country-names/sy.yaml + postcode: no # Eswatini (eSwatini) @@ -1494,6 +1647,8 @@ sz: partition: 82 languages: en, ss names: !include country-names/sz.yaml + postcode: + pattern: "lddd" # Turks and Caicos Islands (Turks and Caicos Islands) @@ -1501,6 +1656,9 @@ tc: partition: 106 languages: en names: !include country-names/tc.yaml + postcode: + pattern: "(TKCA) ?(1ZZ)" + output: \1 \2 # Chad (Tchad تشاد) @@ -1508,13 +1666,7 @@ td: partition: 68 languages: fr, ar names: !include country-names/td.yaml - - -# French Southern Lands (Terres australes et antarctiques françaises) -tf: - partition: 132 - languages: fr - names: !include country-names/tf.yaml + postcode: no # Togo (Togo) @@ -1522,6 +1674,7 @@ tg: partition: 243 languages: fr names: !include country-names/tg.yaml + postcode: no # Thailand (ประเทศไทย) @@ -1529,6 +1682,8 @@ th: partition: 32 languages: th names: !include country-names/th.yaml + postcode: + pattern: "ddddd" # Tajikistan (Тоҷикистон) @@ -1536,6 +1691,8 @@ tj: partition: 129 languages: tg, ru names: !include country-names/tj.yaml + postcode: + pattern: "dddddd" # Tokelau (Tokelau) @@ -1543,6 +1700,7 @@ tk: partition: 179 languages: tkl, en, sm names: !include country-names/tk.yaml + postcode: no # East Timor (Timór Lorosa'e) @@ -1550,6 +1708,7 @@ tl: partition: 161 languages: pt, tet names: !include country-names/tl.yaml + postcode: no # Turkmenistan (Türkmenistan) @@ -1557,6 +1716,8 @@ tm: partition: 54 languages: tk names: !include country-names/tm.yaml + postcode: + pattern: "dddddd" # Tunisia (تونس) @@ -1564,6 +1725,8 @@ tn: partition: 18 languages: ar, fr names: !include country-names/tn.yaml + postcode: + pattern: "dddd" # Tonga (Tonga) @@ -1571,6 +1734,7 @@ to: partition: 220 languages: en names: !include country-names/to.yaml + postcode: no # Turkey (Türkiye) @@ -1578,6 +1742,8 @@ tr: partition: 81 languages: tr names: !include country-names/tr.yaml + postcode: + pattern: "ddddd" # Trinidad and Tobago (Trinidad and Tobago) @@ -1585,6 +1751,8 @@ tt: partition: 221 languages: en names: !include country-names/tt.yaml + postcode: + pattern: "dddddd" # Tuvalu (Tuvalu) @@ -1592,6 +1760,7 @@ tv: partition: 156 languages: en names: !include country-names/tv.yaml + postcode: no # Taiwan (臺灣) @@ -1599,6 +1768,8 @@ tw: partition: 25 languages: zh-hant names: !include country-names/tw.yaml + postcode: + pattern: "ddd(?:ddd?)?" # Tanzania (Tanzania) @@ -1606,6 +1777,8 @@ tz: partition: 130 languages: sw, en names: !include country-names/tz.yaml + postcode: + pattern: "ddddd" # Ukraine (Україна) @@ -1613,6 +1786,8 @@ ua: partition: 173 languages: uk names: !include country-names/ua.yaml + postcode: + pattern: "d?ddddd" # Uganda (Uganda) @@ -1620,13 +1795,7 @@ ug: partition: 155 languages: en, sw names: !include country-names/ug.yaml - - -# (United States Minor Outlying Islands) -um: - partition: 198 - languages: en - names: !include country-names/um.yaml + postcode: no # United States (United States) @@ -1634,6 +1803,8 @@ us: partition: 2 languages: en names: !include country-names/us.yaml + postcode: + pattern: "ddddd" # Uruguay (Uruguay) @@ -1641,6 +1812,8 @@ uy: partition: 174 languages: es names: !include country-names/uy.yaml + postcode: + pattern: "ddddd" # Uzbekistan (Oʻzbekiston) @@ -1648,6 +1821,8 @@ uz: partition: 157 languages: uz, kaa names: !include country-names/uz.yaml + postcode: + pattern: "dddddd" # Vatican City (Civitas Vaticana) @@ -1655,6 +1830,8 @@ va: partition: 107 languages: it names: !include country-names/va.yaml + postcode: + pattern: "00120" # Saint Vincent and the Grenadines (Saint Vincent and the Grenadines) @@ -1662,6 +1839,8 @@ vc: partition: 171 languages: en names: !include country-names/vc.yaml + postcode: + pattern: "VCdddd" # Venezuela (Venezuela) @@ -1669,6 +1848,8 @@ ve: partition: 108 languages: es names: !include country-names/ve.yaml + postcode: + pattern: "dddd" # British Virgin Islands (British Virgin Islands) @@ -1676,13 +1857,8 @@ vg: partition: 109 languages: en names: !include country-names/vg.yaml - - -# (United States Virgin Islands) -vi: - partition: 199 - languages: en - names: !include country-names/vi.yaml + postcode: + pattern: "VGdddd" # Vietnam (Việt Nam) @@ -1690,6 +1866,8 @@ vn: partition: 75 languages: vi names: !include country-names/vn.yaml + postcode: + pattern: "ddddd" # Vanuatu (Vanuatu) @@ -1697,13 +1875,7 @@ vu: partition: 116 languages: bi, en, fr names: !include country-names/vu.yaml - - -# Wallis and Futuna Islands (Wallis-et-Futuna) -wf: - partition: 238 - languages: fr - names: !include country-names/wf.yaml + postcode: no # Samoa (Sāmoa) @@ -1718,6 +1890,8 @@ xk: partition: 59 languages: sq, sr names: !include country-names/xk.yaml + postcode: + pattern: "ddddd" # Yemen (اليمن) @@ -1725,13 +1899,7 @@ ye: partition: 55 languages: ar names: !include country-names/ye.yaml - - -# Mayotte (Mayotte) -yt: - partition: 200 - languages: fr - names: !include country-names/yt.yaml + postcode: no # South Africa (South Africa) @@ -1739,6 +1907,8 @@ za: partition: 76 languages: en, af, st, tn, xh, zu names: !include country-names/za.yaml + postcode: + pattern: "dddd" # Zambia (Zambia) @@ -1746,6 +1916,8 @@ zm: partition: 222 languages: en names: !include country-names/zm.yaml + postcode: + pattern: "dddd" # Zimbabwe (Zimbabwe) @@ -1753,4 +1925,4 @@ zw: partition: 223 languages: en, sn, nd names: !include country-names/zw.yaml - + postcode: no