X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/04644102f2721d6fa6fbb86af8fb7ad8267add56..ad95ff1d067aed8b83579d10dd0c8802803e4a41:/settings/country_settings.yaml?ds=inline diff --git a/settings/country_settings.yaml b/settings/country_settings.yaml index 643acbee..667684c6 100644 --- a/settings/country_settings.yaml +++ b/settings/country_settings.yaml @@ -3,6 +3,9 @@ ad: partition: 35 languages: ca names: !include country-names/ad.yaml + postcode: + pattern: "(ddd)" + output: AD\1 # United Arab Emirates (الإمارات العربية المتحدة) @@ -10,6 +13,7 @@ ae: partition: 83 languages: ar names: !include country-names/ae.yaml + postcode: no # Afghanistan (افغانستان) @@ -17,6 +21,8 @@ af: partition: 30 languages: fa, ps names: !include country-names/af.yaml + postcode: + pattern: "dddd" # Antigua and Barbuda (Antigua and Barbuda) @@ -24,6 +30,7 @@ ag: partition: 205 languages: en names: !include country-names/ag.yaml + postcode: no # Anguilla (Anguilla) @@ -31,6 +38,9 @@ ai: partition: 175 languages: en names: !include country-names/ai.yaml + postcode: + pattern: "2640" + output: AI-2640 # Albania (Shqipëria) @@ -38,6 +48,8 @@ al: partition: 9 languages: sq names: !include country-names/al.yaml + postcode: + pattern: "dddd" # Armenia (Հայաստան) @@ -45,13 +57,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 +66,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 +74,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 +83,8 @@ at: partition: 245 languages: de names: !include country-names/at.yaml + postcode: + pattern: "dddd" # Australia (Australia) @@ -94,20 +92,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 +101,8 @@ az: partition: 119 languages: az names: !include country-names/az.yaml + postcode: + pattern: "dddd" # Bosnia and Herzegovina (Bosna i Hercegovina / Босна и Херцеговина) @@ -122,6 +110,8 @@ ba: partition: 6 languages: bs, hr, sr names: !include country-names/ba.yaml + postcode: + pattern: "ddddd" # Barbados (Barbados) @@ -129,6 +119,9 @@ bb: partition: 206 languages: en names: !include country-names/bb.yaml + postcode: + pattern: "(ddddd)" + output: BB\1 # Bangladesh (Bangladesh) @@ -136,6 +129,8 @@ bd: partition: 158 languages: bn names: !include country-names/bd.yaml + postcode: + pattern: "dddd" # Belgium (België / Belgique / Belgien) @@ -143,6 +138,8 @@ be: partition: 15 languages: nl, fr, de names: !include country-names/be.yaml + postcode: + pattern: "dddd" # Burkina Faso (Burkina Faso) @@ -150,6 +147,7 @@ bf: partition: 225 languages: fr names: !include country-names/bf.yaml + postcode: no # Bulgaria (Бългaрия) @@ -157,6 +155,8 @@ bg: partition: 140 languages: bg names: !include country-names/bg.yaml + postcode: + pattern: "dddd" # Bahrain (البحرين) @@ -164,6 +164,8 @@ bh: partition: 62 languages: ar names: !include country-names/bh.yaml + postcode: + pattern: "d?ddd" # Burundi (Burundi) @@ -171,6 +173,7 @@ bi: partition: 61 languages: fr names: !include country-names/bi.yaml + postcode: no # Benin (Bénin) @@ -178,13 +181,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 +189,9 @@ bm: partition: 176 languages: en names: !include country-names/bm.yaml + postcode: + pattern: "(ll)[ -]?(dd)" + output: \1 \2 # Brunei (Brunei) @@ -199,6 +199,9 @@ bn: partition: 86 languages: ms names: !include country-names/bn.yaml + postcode: + pattern: "(ll) ?(dddd)" + output: \1\2 # Bolivia (Bolivia) @@ -206,13 +209,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 +217,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 +227,7 @@ bs: partition: 207 languages: en names: !include country-names/bs.yaml + postcode: no # Bhutan (འབྲུག་ཡུལ་) @@ -234,13 +235,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 +244,7 @@ bw: partition: 122 languages: en, tn names: !include country-names/bw.yaml + postcode: no # Belarus (Беларусь) @@ -255,6 +252,8 @@ by: partition: 40 languages: be, ru names: !include country-names/by.yaml + postcode: + pattern: "dddddd" # Belize (Belize) @@ -262,6 +261,7 @@ bz: partition: 208 languages: en names: !include country-names/bz.yaml + postcode: no # Canada (Canada) @@ -269,13 +269,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 +279,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 +287,7 @@ cf: partition: 227 languages: fr, sg names: !include country-names/cf.yaml + postcode: no # Congo-Brazzaville (Congo) @@ -297,6 +295,7 @@ cg: partition: 230 languages: fr names: !include country-names/cg.yaml + postcode: no # Switzerland (Schweiz/Suisse/Svizzera/Svizra) @@ -304,6 +303,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 +312,7 @@ ci: partition: 228 languages: fr names: !include country-names/ci.yaml + postcode: no # Cook Islands (Kūki 'Āirani) @@ -318,6 +320,7 @@ ck: partition: 41 languages: en, rar names: !include country-names/ck.yaml + postcode: no # Chile (Chile) @@ -325,6 +328,8 @@ cl: partition: 88 languages: es names: !include country-names/cl.yaml + postcode: + pattern: "ddddddd" # Cameroon (Cameroun) @@ -332,6 +337,7 @@ cm: partition: 141 languages: fr, en names: !include country-names/cm.yaml + postcode: no # China (中国) @@ -339,6 +345,8 @@ cn: partition: 117 languages: zh names: !include country-names/cn.yaml + postcode: + pattern: "dddddd" # Colombia (Colombia) @@ -346,6 +354,8 @@ co: partition: 133 languages: es names: !include country-names/co.yaml + postcode: + pattern: "dddddd" # Costa Rica (Costa Rica) @@ -353,6 +363,8 @@ cr: partition: 64 languages: es names: !include country-names/cr.yaml + postcode: + pattern: "ddddd" # Cuba (Cuba) @@ -360,6 +372,8 @@ cu: partition: 42 languages: es names: !include country-names/cu.yaml + postcode: + pattern: "ddddd" # Cape Verde (Cabo Verde) @@ -367,20 +381,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 +390,8 @@ cy: partition: 114 languages: el, tr names: !include country-names/cy.yaml + postcode: + pattern: "(?:99|d)ddd" # Czechia (Česko) @@ -395,6 +399,9 @@ cz: partition: 124 languages: cs names: !include country-names/cz.yaml + postcode: + pattern: "(ddd) ?(dd)" + output: \1 \2 # Germany (Deutschland) @@ -402,6 +409,8 @@ de: partition: 3 languages: de names: !include country-names/de.yaml + postcode: + pattern: "ddddd" # Djibouti (Djibouti جيبوتي) @@ -409,6 +418,7 @@ dj: partition: 43 languages: fr, ar, so, aa names: !include country-names/dj.yaml + postcode: no # Denmark (Danmark) @@ -416,6 +426,8 @@ dk: partition: 160 languages: da names: !include country-names/dk.yaml + postcode: + pattern: "dddd" # Dominica (Dominica) @@ -423,6 +435,7 @@ dm: partition: 209 languages: en names: !include country-names/dm.yaml + postcode: no # Dominican Republic (República Dominicana) @@ -430,6 +443,8 @@ do: partition: 37 languages: es names: !include country-names/do.yaml + postcode: + pattern: "ddddd" # Algeria (Algérie / ⵍⵣⵣⴰⵢⴻⵔ / الجزائر) @@ -437,6 +452,8 @@ dz: partition: 19 languages: ar, ber, fr names: !include country-names/dz.yaml + postcode: + pattern: "ddddd" # Ecuador (Ecuador) @@ -444,6 +461,8 @@ ec: partition: 78 languages: es names: !include country-names/ec.yaml + postcode: + pattern: "dddddd" # Estonia (Eesti) @@ -451,6 +470,8 @@ ee: partition: 125 languages: et names: !include country-names/ee.yaml + postcode: + pattern: "ddddd" # Egypt (مصر) @@ -458,6 +479,8 @@ eg: partition: 16 languages: ar names: !include country-names/eg.yaml + postcode: + pattern: "ddddd" # Sahrawi Arab Democratic Republic (الجمهورية العربية الصحراوية الديمقراطية) @@ -472,6 +495,7 @@ er: partition: 142 languages: ti, ar, en names: !include country-names/er.yaml + postcode: no # Spain (España) @@ -479,6 +503,8 @@ es: partition: 31 languages: es, ast, ca, eu, gl names: !include country-names/es.yaml + postcode: + pattern: "ddddd" # Ethiopia (ኢትዮጵያ) @@ -486,6 +512,8 @@ et: partition: 90 languages: am, om names: !include country-names/et.yaml + postcode: + pattern: "dddd" # Finland (Suomi) @@ -493,6 +521,8 @@ fi: partition: 20 languages: fi, sv, se names: !include country-names/fi.yaml + postcode: + pattern: "ddddd" # Fiji (Viti) @@ -500,6 +530,7 @@ fj: partition: 210 languages: en names: !include country-names/fj.yaml + postcode: no # Falkland Islands (Falkland Islands) @@ -507,6 +538,8 @@ fk: partition: 91 languages: en names: !include country-names/fk.yaml + postcode: + pattern: "FIQQ 1ZZ" # Federated States of Micronesia (Micronesia) @@ -514,6 +547,8 @@ fm: partition: 217 languages: en names: !include country-names/fm.yaml + postcode: + pattern: "ddddd" # Faroe Islands (Føroyar) @@ -521,6 +556,8 @@ fo: partition: 10 languages: fo, da names: !include country-names/fo.yaml + postcode: + pattern: "ddd" # France (France) @@ -528,6 +565,8 @@ fr: partition: 4 languages: fr names: !include country-names/fr.yaml + postcode: + pattern: "ddddd" # Gabon (Gabon) @@ -535,6 +574,7 @@ ga: partition: 239 languages: fr names: !include country-names/ga.yaml + postcode: no # United Kingdom (United Kingdom) @@ -542,6 +582,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 +592,7 @@ gd: partition: 143 languages: en names: !include country-names/gd.yaml + postcode: no # Georgia (საქართველო) @@ -556,13 +600,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 +609,9 @@ gg: partition: 77 languages: en names: !include country-names/gg.yaml + postcode: + pattern: "(GYdd?) ?(dll)" + output: \1 \2 # Ghana (Ghana) @@ -577,6 +619,8 @@ gh: partition: 211 languages: en names: !include country-names/gh.yaml + postcode: + pattern: "ll-d?ddd-dddd" # Gibraltar (Gibraltar) @@ -584,6 +628,9 @@ gi: partition: 138 languages: en names: !include country-names/gi.yaml + postcode: + pattern: "(GX11) ?(1AA)" + output: GX11 1AA # Greenland (Kalaallit Nunaat) @@ -591,6 +638,8 @@ gl: partition: 111 languages: kl, da names: !include country-names/gl.yaml + postcode: + pattern: "dddd" # The Gambia (Gambia) @@ -598,6 +647,7 @@ gm: partition: 212 languages: en names: !include country-names/gm.yaml + postcode: no # Guinea (Guinée) @@ -605,13 +655,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 +664,7 @@ gq: partition: 12 languages: es, fr, pt names: !include country-names/gq.yaml + postcode: no # Greece (Ελλάς) @@ -626,6 +672,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 +682,9 @@ gs: partition: 44 languages: en names: !include country-names/gs.yaml + postcode: + pattern: "(SIQQ) ?(1ZZ)" + output: \1 \2 # Guatemala (Guatemala) @@ -640,13 +692,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 +701,8 @@ gw: partition: 8 languages: pt names: !include country-names/gw.yaml + postcode: + pattern: "dddd" # Guyana (Guyana) @@ -661,20 +710,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 +718,8 @@ hn: partition: 56 languages: es names: !include country-names/hn.yaml + postcode: + pattern: "ddddd" # Croatia (Hrvatska) @@ -689,6 +727,8 @@ hr: partition: 92 languages: hr names: !include country-names/hr.yaml + postcode: + pattern: "ddddd" # Haiti (Ayiti) @@ -696,6 +736,8 @@ ht: partition: 29 languages: fr, ht names: !include country-names/ht.yaml + postcode: + pattern: "dddd" # Hungary (Magyarország) @@ -703,6 +745,8 @@ hu: partition: 45 languages: hu names: !include country-names/hu.yaml + postcode: + pattern: "dddd" # Indonesia (Indonesia) @@ -710,6 +754,8 @@ id: partition: 110 languages: id names: !include country-names/id.yaml + postcode: + pattern: "ddddd" # Ireland (Éire / Ireland) @@ -717,6 +763,9 @@ ie: partition: 46 languages: en, ga names: !include country-names/ie.yaml + postcode: + pattern: "(ldd) ?([0123456789ACDEFHKNPRTVWXY]{4})" + output: \1 \2 # Israel (ישראל) @@ -724,6 +773,8 @@ il: partition: 65 languages: he names: !include country-names/il.yaml + postcode: + pattern: "ddddddd" # Isle of Man (Isle of Man) @@ -731,6 +782,9 @@ im: partition: 190 languages: en names: !include country-names/im.yaml + postcode: + pattern: "(IMdd?) ?(dll)" + output: \1 \2 # India (India) @@ -738,6 +792,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 +802,9 @@ io: partition: 13 languages: en names: !include country-names/io.yaml + postcode: + pattern: "(BBND) ?(1ZZ)" + output: \1 \2 # Iraq (العراق) @@ -752,6 +812,8 @@ iq: partition: 144 languages: ar, ku names: !include country-names/iq.yaml + postcode: + pattern: "ddddd" # Iran (ایران) @@ -759,6 +821,9 @@ ir: partition: 80 languages: fa names: !include country-names/ir.yaml + postcode: + pattern: "(ddddd)[-_ ]?(ddddd)" + output: \1-\2 # Iceland (Ísland) @@ -766,6 +831,8 @@ is: partition: 134 languages: is names: !include country-names/is.yaml + postcode: + pattern: "ddd" # Italy (Italia) @@ -773,6 +840,8 @@ it: partition: 28 languages: it, de, fr names: !include country-names/it.yaml + postcode: + pattern: "ddddd" # Jersey (Jersey) @@ -780,6 +849,9 @@ je: partition: 123 languages: en names: !include country-names/je.yaml + postcode: + pattern: "(JEdd?) ?(dll)" + output: \1 \2 # Jamaica (Jamaica) @@ -787,6 +859,7 @@ jm: partition: 214 languages: en names: !include country-names/jm.yaml + postcode: no # Jordan (الأردن) @@ -794,6 +867,8 @@ jo: partition: 17 languages: ar names: !include country-names/jo.yaml + postcode: + pattern: "ddddd" # Japan (日本) @@ -801,6 +876,9 @@ jp: partition: 11 languages: ja names: !include country-names/jp.yaml + postcode: + pattern: "(ddd)-?(dddd)" + output: \1-\2 # Kenya (Kenya) @@ -808,6 +886,8 @@ ke: partition: 126 languages: sw, en names: !include country-names/ke.yaml + postcode: + pattern: "ddddd" # Kyrgyzstan (Кыргызстан) @@ -815,6 +895,8 @@ kg: partition: 93 languages: ky, ru names: !include country-names/kg.yaml + postcode: + pattern: "dddddd" # Cambodia (ព្រះរាជាណាចក្រ​កម្ពុជា) @@ -822,6 +904,8 @@ kh: partition: 159 languages: km names: !include country-names/kh.yaml + postcode: + pattern: "dddddd" # Kiribati (Kiribati) @@ -829,6 +913,7 @@ ki: partition: 215 languages: en names: !include country-names/ki.yaml + postcode: no # Comoros (Comores Komori جزر القمر) @@ -836,6 +921,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 +929,8 @@ kn: partition: 84 languages: en names: !include country-names/kn.yaml + postcode: + pattern: "dddd" # North Korea (조선민주주의인민공화국) @@ -850,6 +938,7 @@ kp: partition: 48 languages: ko names: !include country-names/kp.yaml + postcode: no # South Korea (대한민국) @@ -857,6 +946,8 @@ kr: partition: 49 languages: ko, en names: !include country-names/kr.yaml + postcode: + pattern: "ddddd" # Kuwait (الكويت) @@ -864,6 +955,8 @@ kw: partition: 127 languages: ar names: !include country-names/kw.yaml + postcode: + pattern: "ddddd" # Cayman Islands (Cayman Islands) @@ -871,6 +964,9 @@ ky: partition: 38 languages: en names: !include country-names/ky.yaml + postcode: + pattern: "(d)-(dddd)" + output: KY\1-\2 # Kazakhstan (Қазақстан) @@ -878,6 +974,8 @@ kz: partition: 94 languages: kk, ru names: !include country-names/kz.yaml + postcode: + pattern: "(?:lddldld|dddddd)" # Laos (ປະເທດລາວ) @@ -885,6 +983,8 @@ la: partition: 145 languages: lo names: !include country-names/la.yaml + postcode: + pattern: "ddddd" # Lebanon (لبنان) @@ -892,6 +992,8 @@ lb: partition: 66 languages: ar, fr names: !include country-names/lb.yaml + postcode: + pattern: "(dddd)(?: ?dddd)?" # Saint Lucia (Saint Lucia) @@ -899,6 +1001,9 @@ lc: partition: 146 languages: en names: !include country-names/lc.yaml + postcode: + pattern: "(dd) ?(ddd)" + output: LC\1 \2 # Liechtenstein (Liechtenstein) @@ -906,6 +1011,8 @@ li: partition: 246 languages: de names: !include country-names/li.yaml + postcode: + pattern: "dddd" # Sri Lanka (ශ්‍රී ලංකාව இலங்கை) @@ -913,6 +1020,8 @@ lk: partition: 95 languages: si, ta names: !include country-names/lk.yaml + postcode: + pattern: "ddddd" # Liberia (Liberia) @@ -920,6 +1029,8 @@ lr: partition: 216 languages: en names: !include country-names/lr.yaml + postcode: + pattern: "dddd" # Lesotho (Lesotho) @@ -927,6 +1038,8 @@ ls: partition: 136 languages: en, st names: !include country-names/ls.yaml + postcode: + pattern: "ddd" # Lithuania (Lietuva) @@ -934,6 +1047,8 @@ lt: partition: 67 languages: lt names: !include country-names/lt.yaml + postcode: + pattern: "ddddd" # Luxembourg (Lëtzebuerg) @@ -941,6 +1056,8 @@ lu: partition: 74 languages: lb, fr, de names: !include country-names/lu.yaml + postcode: + pattern: "dddd" # Latvia (Latvija) @@ -948,6 +1065,9 @@ lv: partition: 162 languages: lv names: !include country-names/lv.yaml + postcode: + pattern: "(dddd)" + output: LV-\1 # Libya (ليبيا) @@ -955,6 +1075,7 @@ ly: partition: 163 languages: ar names: !include country-names/ly.yaml + postcode: no # Morocco (Maroc ⵍⵎⵖⵔⵉⴱ المغرب) @@ -962,6 +1083,8 @@ ma: partition: 23 languages: fr, zgh, ar names: !include country-names/ma.yaml + postcode: + pattern: "ddddd" # Monaco (Monaco) @@ -969,6 +1092,8 @@ mc: partition: 242 languages: fr names: !include country-names/mc.yaml + postcode: + pattern: "980dd" # Moldova (Moldova) @@ -976,6 +1101,9 @@ md: partition: 147 languages: ro, ru, uk names: !include country-names/md.yaml + postcode: + pattern: "(dddd)" + output: MD-\1 # Montenegro (Crna Gora / Црна Гора) @@ -983,13 +1111,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 +1120,8 @@ mg: partition: 164 languages: mg, fr names: !include country-names/mg.yaml + postcode: + pattern: "ddd" # Marshall Islands (Ṃajeḷ) @@ -1004,6 +1129,8 @@ mh: partition: 105 languages: en, mh names: !include country-names/mh.yaml + postcode: + pattern: "ddddd" # North Macedonia (Северна Македонија) @@ -1011,6 +1138,8 @@ mk: partition: 69 languages: mk names: !include country-names/mk.yaml + postcode: + pattern: "dddd" # Mali (Mali) @@ -1018,6 +1147,7 @@ ml: partition: 241 languages: fr names: !include country-names/ml.yaml + postcode: no # Myanmar (မြန်မာ) @@ -1025,6 +1155,8 @@ mm: partition: 148 languages: my names: !include country-names/mm.yaml + postcode: + pattern: "ddddd" # Mongolia (Монгол улс ᠮᠤᠩᠭᠤᠯ ᠤᠯᠤᠰ) @@ -1032,27 +1164,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 +1173,7 @@ mr: partition: 149 languages: ar, fr names: !include country-names/mr.yaml + postcode: no # Montserrat (Montserrat) @@ -1074,6 +1188,9 @@ mt: partition: 165 languages: mt, en names: !include country-names/mt.yaml + postcode: + pattern: "(lll) ?(dddd)" + output: \1 \2 # Mauritius (Mauritius) @@ -1081,6 +1198,8 @@ mu: partition: 150 languages: mfe, fr, en names: !include country-names/mu.yaml + postcode: + pattern: "ddddd" # Maldives (ދިވެހިރާއްޖެ) @@ -1088,6 +1207,8 @@ mv: partition: 96 languages: dv names: !include country-names/mv.yaml + postcode: + pattern: "ddddd" # Malawi (Malawi) @@ -1095,6 +1216,7 @@ mw: partition: 97 languages: en, ny names: !include country-names/mw.yaml + postcode: no # Mexico (México) @@ -1102,6 +1224,8 @@ mx: partition: 166 languages: es names: !include country-names/mx.yaml + postcode: + pattern: "ddddd" # Malaysia (Malaysia) @@ -1109,6 +1233,8 @@ my: partition: 7 languages: ms names: !include country-names/my.yaml + postcode: + pattern: "ddddd" # Mozambique (Moçambique) @@ -1116,6 +1242,8 @@ mz: partition: 98 languages: pt names: !include country-names/mz.yaml + postcode: + pattern: "(dddd)(?:-dd)?" # Namibia (Namibia) @@ -1123,13 +1251,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 +1260,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 +1269,8 @@ ng: partition: 218 languages: en names: !include country-names/ng.yaml + postcode: + pattern: "dddddd" # Nicaragua (Nicaragua) @@ -1158,6 +1278,8 @@ ni: partition: 151 languages: es names: !include country-names/ni.yaml + postcode: + pattern: "ddddd" # Netherlands (Nederland) @@ -1165,6 +1287,9 @@ nl: partition: 63 languages: nl names: !include country-names/nl.yaml + postcode: + pattern: "(dddd) ?(ll)" + output: \1 \2 # Norway (Norge) @@ -1172,6 +1297,8 @@ nl: partition: 60 languages: nb, nn, no, se names: !include country-names/no.yaml + postcode: + pattern: "dddd" # Nepal (Nepal) @@ -1179,6 +1306,8 @@ np: partition: 50 languages: ne names: !include country-names/np.yaml + postcode: + pattern: "ddddd" # Nauru (Naoero) @@ -1186,6 +1315,7 @@ nr: partition: 70 languages: na, en names: !include country-names/nr.yaml + postcode: no # Niue (Niuē) @@ -1193,6 +1323,7 @@ nu: partition: 178 languages: niu, en names: !include country-names/nu.yaml + postcode: no # New Zealand (New Zealand / Aotearoa) @@ -1200,6 +1331,8 @@ nz: partition: 27 languages: mi, en names: !include country-names/nz.yaml + postcode: + pattern: "dddd" # Oman (عمان) @@ -1207,6 +1340,8 @@ om: partition: 137 languages: ar names: !include country-names/om.yaml + postcode: + pattern: "ddd" # Panama (Panamá) @@ -1214,6 +1349,8 @@ pa: partition: 152 languages: es names: !include country-names/pa.yaml + postcode: + pattern: "dddd" # Peru (Perú) @@ -1221,13 +1358,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 +1367,8 @@ pg: partition: 71 languages: en, tpi, ho names: !include country-names/pg.yaml + postcode: + pattern: "ddd" # Philippines (Philippines) @@ -1242,6 +1376,8 @@ ph: partition: 26 languages: en, tl names: !include country-names/ph.yaml + postcode: + pattern: "dddd" # Pakistan (پاکستان) @@ -1249,6 +1385,8 @@ pk: partition: 14 languages: en, ur, pnb, sd, ps, bal names: !include country-names/pk.yaml + postcode: + pattern: "ddddd" # Poland (Polska) @@ -1256,13 +1394,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 +1404,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 +1414,8 @@ ps: partition: 194 languages: ar, he names: !include country-names/ps.yaml + postcode: + pattern: "ddd" # Portugal (Portugal) @@ -1291,6 +1423,8 @@ pt: partition: 34 languages: pt names: !include country-names/pt.yaml + postcode: + pattern: "dddd(?:-ddd)?" # Palau (Belau) @@ -1298,6 +1432,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 +1441,8 @@ py: partition: 101 languages: es, gn names: !include country-names/py.yaml + postcode: + pattern: "dddddd" # Qatar (قطر) @@ -1312,13 +1450,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 +1458,8 @@ ro: partition: 170 languages: ro names: !include country-names/ro.yaml + postcode: + pattern: "dddddd" # Serbia (Србија) @@ -1333,6 +1467,8 @@ rs: partition: 59 languages: sr names: !include country-names/rs.yaml + postcode: + pattern: "ddddd" # Russia (Россия) @@ -1340,6 +1476,8 @@ ru: partition: 135 languages: ru names: !include country-names/ru.yaml + postcode: + pattern: "dddddd" # Rwanda (Rwanda) @@ -1347,6 +1485,7 @@ rw: partition: 102 languages: rw, fr, en names: !include country-names/rw.yaml + postcode: no # Saudi Arabia (السعودية) @@ -1354,6 +1493,8 @@ sa: partition: 52 languages: ar names: !include country-names/sa.yaml + postcode: + pattern: "ddddd(?:-dddd)?" # Solomon Islands (Solomon Islands) @@ -1361,6 +1502,7 @@ sb: partition: 201 languages: en names: !include country-names/sb.yaml + postcode: no # Seychelles (Sesel) @@ -1368,6 +1510,7 @@ sc: partition: 79 languages: fr, en, crs names: !include country-names/sc.yaml + postcode: no # Sudan (السودان) @@ -1375,6 +1518,8 @@ sd: partition: 72 languages: ar, en names: !include country-names/sd.yaml + postcode: + pattern: "ddddd" # Sweden (Sverige) @@ -1382,6 +1527,9 @@ se: partition: 112 languages: sv names: !include country-names/se.yaml + postcode: + pattern: "(ddd) ?(dd)" + output: \1 \2 # Singapore (Singapore) @@ -1389,6 +1537,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 +1546,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 +1556,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 +1565,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 +1575,7 @@ sl: partition: 219 languages: en names: !include country-names/sl.yaml + postcode: no # San Marino (San Marino) @@ -1431,6 +1583,8 @@ sm: partition: 153 languages: it names: !include country-names/sm.yaml + postcode: + pattern: "4789d" # Senegal (Sénégal) @@ -1438,6 +1592,8 @@ sn: partition: 237 languages: fr names: !include country-names/sn.yaml + postcode: + pattern: "ddddd" # Somalia (Soomaaliya الصومال) @@ -1445,6 +1601,9 @@ so: partition: 154 languages: so, ar names: !include country-names/so.yaml + postcode: + pattern: "(ll) ?(ddddd)" + output: \1 \2 # Suriname (Suriname) @@ -1452,6 +1611,7 @@ sr: partition: 24 languages: nl names: !include country-names/sr.yaml + postcode: no # South Sudan (South Sudan) @@ -1459,6 +1619,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 +1627,7 @@ st: partition: 53 languages: pt names: !include country-names/st.yaml + postcode: no # El Salvador (El Salvador) @@ -1473,13 +1635,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 +1644,7 @@ sy: partition: 104 languages: ar names: !include country-names/sy.yaml + postcode: no # Eswatini (eSwatini) @@ -1494,6 +1652,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 +1661,9 @@ tc: partition: 106 languages: en names: !include country-names/tc.yaml + postcode: + pattern: "(TKCA) ?(1ZZ)" + output: \1 \2 # Chad (Tchad تشاد) @@ -1508,13 +1671,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 +1679,7 @@ tg: partition: 243 languages: fr names: !include country-names/tg.yaml + postcode: no # Thailand (ประเทศไทย) @@ -1529,6 +1687,8 @@ th: partition: 32 languages: th names: !include country-names/th.yaml + postcode: + pattern: "ddddd" # Tajikistan (Тоҷикистон) @@ -1536,6 +1696,8 @@ tj: partition: 129 languages: tg, ru names: !include country-names/tj.yaml + postcode: + pattern: "dddddd" # Tokelau (Tokelau) @@ -1543,6 +1705,7 @@ tk: partition: 179 languages: tkl, en, sm names: !include country-names/tk.yaml + postcode: no # East Timor (Timór Lorosa'e) @@ -1550,6 +1713,7 @@ tl: partition: 161 languages: pt, tet names: !include country-names/tl.yaml + postcode: no # Turkmenistan (Türkmenistan) @@ -1557,6 +1721,8 @@ tm: partition: 54 languages: tk names: !include country-names/tm.yaml + postcode: + pattern: "dddddd" # Tunisia (تونس) @@ -1564,6 +1730,8 @@ tn: partition: 18 languages: ar, fr names: !include country-names/tn.yaml + postcode: + pattern: "dddd" # Tonga (Tonga) @@ -1571,6 +1739,7 @@ to: partition: 220 languages: en names: !include country-names/to.yaml + postcode: no # Turkey (Türkiye) @@ -1578,6 +1747,8 @@ tr: partition: 81 languages: tr names: !include country-names/tr.yaml + postcode: + pattern: "ddddd" # Trinidad and Tobago (Trinidad and Tobago) @@ -1585,6 +1756,8 @@ tt: partition: 221 languages: en names: !include country-names/tt.yaml + postcode: + pattern: "dddddd" # Tuvalu (Tuvalu) @@ -1592,6 +1765,7 @@ tv: partition: 156 languages: en names: !include country-names/tv.yaml + postcode: no # Taiwan (臺灣) @@ -1599,6 +1773,8 @@ tw: partition: 25 languages: zh-hant names: !include country-names/tw.yaml + postcode: + pattern: "ddd(?:ddd?)?" # Tanzania (Tanzania) @@ -1606,6 +1782,8 @@ tz: partition: 130 languages: sw, en names: !include country-names/tz.yaml + postcode: + pattern: "ddddd" # Ukraine (Україна) @@ -1613,6 +1791,8 @@ ua: partition: 173 languages: uk names: !include country-names/ua.yaml + postcode: + pattern: "d?ddddd" # Uganda (Uganda) @@ -1620,13 +1800,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 +1808,8 @@ us: partition: 2 languages: en names: !include country-names/us.yaml + postcode: + pattern: "ddddd" # Uruguay (Uruguay) @@ -1641,6 +1817,8 @@ uy: partition: 174 languages: es names: !include country-names/uy.yaml + postcode: + pattern: "ddddd" # Uzbekistan (Oʻzbekiston) @@ -1648,6 +1826,8 @@ uz: partition: 157 languages: uz, kaa names: !include country-names/uz.yaml + postcode: + pattern: "dddddd" # Vatican City (Civitas Vaticana) @@ -1655,6 +1835,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 +1844,9 @@ vc: partition: 171 languages: en names: !include country-names/vc.yaml + postcode: + pattern: "(dddd)" + output: VC\1 # Venezuela (Venezuela) @@ -1669,6 +1854,8 @@ ve: partition: 108 languages: es names: !include country-names/ve.yaml + postcode: + pattern: "dddd" # British Virgin Islands (British Virgin Islands) @@ -1676,13 +1863,9 @@ 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: "(dddd)" + output: VG\1 # Vietnam (Việt Nam) @@ -1690,6 +1873,8 @@ vn: partition: 75 languages: vi names: !include country-names/vn.yaml + postcode: + pattern: "ddddd" # Vanuatu (Vanuatu) @@ -1697,13 +1882,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 +1897,8 @@ xk: partition: 59 languages: sq, sr names: !include country-names/xk.yaml + postcode: + pattern: "ddddd" # Yemen (اليمن) @@ -1725,13 +1906,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 +1914,8 @@ za: partition: 76 languages: en, af, st, tn, xh, zu names: !include country-names/za.yaml + postcode: + pattern: "dddd" # Zambia (Zambia) @@ -1746,6 +1923,8 @@ zm: partition: 222 languages: en names: !include country-names/zm.yaml + postcode: + pattern: "dddd" # Zimbabwe (Zimbabwe) @@ -1753,4 +1932,4 @@ zw: partition: 223 languages: en, sn, nd names: !include country-names/zw.yaml - + postcode: no