X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/21fb501699ad6d41c3f57b431a3826238df255b6..dfcb24061eb6d3d415cd86d2f4edd95c4debaf36:/settings/country_settings.yaml diff --git a/settings/country_settings.yaml b/settings/country_settings.yaml index 8abbe4a2..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 (الإمارات العربية المتحدة) @@ -18,6 +21,8 @@ af: partition: 30 languages: fa, ps names: !include country-names/af.yaml + postcode: + pattern: "dddd" # Antigua and Barbuda (Antigua and Barbuda) @@ -33,6 +38,9 @@ ai: partition: 175 languages: en names: !include country-names/ai.yaml + postcode: + pattern: "2640" + output: AI-2640 # Albania (Shqipëria) @@ -40,6 +48,8 @@ al: partition: 9 languages: sq names: !include country-names/al.yaml + postcode: + pattern: "dddd" # Armenia (Հայաստան) @@ -47,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) @@ -64,25 +69,13 @@ ao: postcode: no -# (Antarctica) -aq: - partition: 181 - languages: en, es, fr, ru - names: !include country-names/aq.yaml - - # Argentina (Argentina) 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) @@ -90,6 +83,8 @@ at: partition: 245 languages: de names: !include country-names/at.yaml + postcode: + pattern: "dddd" # Australia (Australia) @@ -97,21 +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 - postcode: no - - -# (Aland Islands) -ax: - partition: 184 - languages: sv - names: !include country-names/ax.yaml + postcode: + pattern: "dddd" # Azerbaijan (Azərbaycan) @@ -119,6 +101,8 @@ az: partition: 119 languages: az names: !include country-names/az.yaml + postcode: + pattern: "dddd" # Bosnia and Herzegovina (Bosna i Hercegovina / Босна и Херцеговина) @@ -126,6 +110,8 @@ ba: partition: 6 languages: bs, hr, sr names: !include country-names/ba.yaml + postcode: + pattern: "ddddd" # Barbados (Barbados) @@ -133,6 +119,9 @@ bb: partition: 206 languages: en names: !include country-names/bb.yaml + postcode: + pattern: "(ddddd)" + output: BB\1 # Bangladesh (Bangladesh) @@ -140,6 +129,8 @@ bd: partition: 158 languages: bn names: !include country-names/bd.yaml + postcode: + pattern: "dddd" # Belgium (België / Belgique / Belgien) @@ -147,6 +138,8 @@ be: partition: 15 languages: nl, fr, de names: !include country-names/be.yaml + postcode: + pattern: "dddd" # Burkina Faso (Burkina Faso) @@ -162,6 +155,8 @@ bg: partition: 140 languages: bg names: !include country-names/bg.yaml + postcode: + pattern: "dddd" # Bahrain (البحرين) @@ -169,6 +164,8 @@ bh: partition: 62 languages: ar names: !include country-names/bh.yaml + postcode: + pattern: "d?ddd" # Burundi (Burundi) @@ -187,18 +184,14 @@ bj: postcode: no -# (Saint Barthélemy) -bl: - partition: 204 - languages: fr - names: !include country-names/bl.yaml - - # Bermuda (Bermuda) bm: partition: 176 languages: en names: !include country-names/bm.yaml + postcode: + pattern: "(ll)[ -]?(dd)" + output: \1 \2 # Brunei (Brunei) @@ -206,6 +199,9 @@ bn: partition: 86 languages: ms names: !include country-names/bn.yaml + postcode: + pattern: "(ll) ?(dddd)" + output: \1\2 # Bolivia (Bolivia) @@ -216,18 +212,14 @@ bo: postcode: no -# Caribbean Netherlands (Caribisch Nederland) -bq: - partition: 250 - languages: nl - names: !include country-names/bq.yaml - - # Brazil (Brasil) br: partition: 121 languages: pt names: !include country-names/br.yaml + postcode: + pattern: "(ddddd)-?(ddd)" + output: \1-\2 # The Bahamas (The Bahamas) @@ -243,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) @@ -265,6 +252,8 @@ by: partition: 40 languages: be, ru names: !include country-names/by.yaml + postcode: + pattern: "dddddd" # Belize (Belize) @@ -280,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) @@ -318,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) @@ -341,6 +328,8 @@ cl: partition: 88 languages: es names: !include country-names/cl.yaml + postcode: + pattern: "ddddddd" # Cameroon (Cameroun) @@ -356,6 +345,8 @@ cn: partition: 117 languages: zh names: !include country-names/cn.yaml + postcode: + pattern: "dddddd" # Colombia (Colombia) @@ -363,6 +354,8 @@ co: partition: 133 languages: es names: !include country-names/co.yaml + postcode: + pattern: "dddddd" # Costa Rica (Costa Rica) @@ -370,6 +363,8 @@ cr: partition: 64 languages: es names: !include country-names/cr.yaml + postcode: + pattern: "ddddd" # Cuba (Cuba) @@ -377,6 +372,8 @@ cu: partition: 42 languages: es names: !include country-names/cu.yaml + postcode: + pattern: "ddddd" # Cape Verde (Cabo Verde) @@ -384,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) @@ -405,6 +390,8 @@ cy: partition: 114 languages: el, tr names: !include country-names/cy.yaml + postcode: + pattern: "(?:99|d)ddd" # Czechia (Česko) @@ -412,6 +399,9 @@ cz: partition: 124 languages: cs names: !include country-names/cz.yaml + postcode: + pattern: "(ddd) ?(dd)" + output: \1 \2 # Germany (Deutschland) @@ -419,6 +409,8 @@ de: partition: 3 languages: de names: !include country-names/de.yaml + postcode: + pattern: "ddddd" # Djibouti (Djibouti جيبوتي) @@ -434,6 +426,8 @@ dk: partition: 160 languages: da names: !include country-names/dk.yaml + postcode: + pattern: "dddd" # Dominica (Dominica) @@ -449,6 +443,8 @@ do: partition: 37 languages: es names: !include country-names/do.yaml + postcode: + pattern: "ddddd" # Algeria (Algérie / ⵍⵣⵣⴰⵢⴻⵔ / الجزائر) @@ -456,6 +452,8 @@ dz: partition: 19 languages: ar, ber, fr names: !include country-names/dz.yaml + postcode: + pattern: "ddddd" # Ecuador (Ecuador) @@ -463,6 +461,8 @@ ec: partition: 78 languages: es names: !include country-names/ec.yaml + postcode: + pattern: "dddddd" # Estonia (Eesti) @@ -470,6 +470,8 @@ ee: partition: 125 languages: et names: !include country-names/ee.yaml + postcode: + pattern: "ddddd" # Egypt (مصر) @@ -477,6 +479,8 @@ eg: partition: 16 languages: ar names: !include country-names/eg.yaml + postcode: + pattern: "ddddd" # Sahrawi Arab Democratic Republic (الجمهورية العربية الصحراوية الديمقراطية) @@ -499,6 +503,8 @@ es: partition: 31 languages: es, ast, ca, eu, gl names: !include country-names/es.yaml + postcode: + pattern: "ddddd" # Ethiopia (ኢትዮጵያ) @@ -506,6 +512,8 @@ et: partition: 90 languages: am, om names: !include country-names/et.yaml + postcode: + pattern: "dddd" # Finland (Suomi) @@ -513,6 +521,8 @@ fi: partition: 20 languages: fi, sv, se names: !include country-names/fi.yaml + postcode: + pattern: "ddddd" # Fiji (Viti) @@ -528,6 +538,8 @@ fk: partition: 91 languages: en names: !include country-names/fk.yaml + postcode: + pattern: "FIQQ 1ZZ" # Federated States of Micronesia (Micronesia) @@ -535,6 +547,8 @@ fm: partition: 217 languages: en names: !include country-names/fm.yaml + postcode: + pattern: "ddddd" # Faroe Islands (Føroyar) @@ -542,6 +556,8 @@ fo: partition: 10 languages: fo, da names: !include country-names/fo.yaml + postcode: + pattern: "ddd" # France (France) @@ -549,6 +565,8 @@ fr: partition: 4 languages: fr names: !include country-names/fr.yaml + postcode: + pattern: "ddddd" # Gabon (Gabon) @@ -564,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) @@ -579,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) @@ -593,6 +609,9 @@ gg: partition: 77 languages: en names: !include country-names/gg.yaml + postcode: + pattern: "(GYdd?) ?(dll)" + output: \1 \2 # Ghana (Ghana) @@ -600,6 +619,8 @@ gh: partition: 211 languages: en names: !include country-names/gh.yaml + postcode: + pattern: "ll-d?ddd-dddd" # Gibraltar (Gibraltar) @@ -607,6 +628,9 @@ gi: partition: 138 languages: en names: !include country-names/gi.yaml + postcode: + pattern: "(GX11) ?(1AA)" + output: GX11 1AA # Greenland (Kalaallit Nunaat) @@ -614,6 +638,8 @@ gl: partition: 111 languages: kl, da names: !include country-names/gl.yaml + postcode: + pattern: "dddd" # The Gambia (Gambia) @@ -629,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) @@ -651,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) @@ -658,6 +682,9 @@ gs: partition: 44 languages: en names: !include country-names/gs.yaml + postcode: + pattern: "(SIQQ) ?(1ZZ)" + output: \1 \2 # Guatemala (Guatemala) @@ -665,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) @@ -679,6 +701,8 @@ gw: partition: 8 languages: pt names: !include country-names/gw.yaml + postcode: + pattern: "dddd" # Guyana (Guyana) @@ -689,25 +713,13 @@ gy: postcode: no -# (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 - - # Honduras (Honduras) hn: partition: 56 languages: es names: !include country-names/hn.yaml + postcode: + pattern: "ddddd" # Croatia (Hrvatska) @@ -715,6 +727,8 @@ hr: partition: 92 languages: hr names: !include country-names/hr.yaml + postcode: + pattern: "ddddd" # Haiti (Ayiti) @@ -722,6 +736,8 @@ ht: partition: 29 languages: fr, ht names: !include country-names/ht.yaml + postcode: + pattern: "dddd" # Hungary (Magyarország) @@ -729,6 +745,8 @@ hu: partition: 45 languages: hu names: !include country-names/hu.yaml + postcode: + pattern: "dddd" # Indonesia (Indonesia) @@ -736,6 +754,8 @@ id: partition: 110 languages: id names: !include country-names/id.yaml + postcode: + pattern: "ddddd" # Ireland (Éire / Ireland) @@ -743,6 +763,9 @@ ie: partition: 46 languages: en, ga names: !include country-names/ie.yaml + postcode: + pattern: "(ldd) ?([0123456789ACDEFHKNPRTVWXY]{4})" + output: \1 \2 # Israel (ישראל) @@ -750,6 +773,8 @@ il: partition: 65 languages: he names: !include country-names/il.yaml + postcode: + pattern: "ddddddd" # Isle of Man (Isle of Man) @@ -757,6 +782,9 @@ im: partition: 190 languages: en names: !include country-names/im.yaml + postcode: + pattern: "(IMdd?) ?(dll)" + output: \1 \2 # India (India) @@ -764,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) @@ -771,6 +802,9 @@ io: partition: 13 languages: en names: !include country-names/io.yaml + postcode: + pattern: "(BBND) ?(1ZZ)" + output: \1 \2 # Iraq (العراق) @@ -778,6 +812,8 @@ iq: partition: 144 languages: ar, ku names: !include country-names/iq.yaml + postcode: + pattern: "ddddd" # Iran (ایران) @@ -785,6 +821,9 @@ ir: partition: 80 languages: fa names: !include country-names/ir.yaml + postcode: + pattern: "(ddddd)[-_ ]?(ddddd)" + output: \1-\2 # Iceland (Ísland) @@ -792,6 +831,8 @@ is: partition: 134 languages: is names: !include country-names/is.yaml + postcode: + pattern: "ddd" # Italy (Italia) @@ -799,6 +840,8 @@ it: partition: 28 languages: it, de, fr names: !include country-names/it.yaml + postcode: + pattern: "ddddd" # Jersey (Jersey) @@ -806,6 +849,9 @@ je: partition: 123 languages: en names: !include country-names/je.yaml + postcode: + pattern: "(JEdd?) ?(dll)" + output: \1 \2 # Jamaica (Jamaica) @@ -813,6 +859,7 @@ jm: partition: 214 languages: en names: !include country-names/jm.yaml + postcode: no # Jordan (الأردن) @@ -820,6 +867,8 @@ jo: partition: 17 languages: ar names: !include country-names/jo.yaml + postcode: + pattern: "ddddd" # Japan (日本) @@ -827,6 +876,9 @@ jp: partition: 11 languages: ja names: !include country-names/jp.yaml + postcode: + pattern: "(ddd)-?(dddd)" + output: \1-\2 # Kenya (Kenya) @@ -834,6 +886,8 @@ ke: partition: 126 languages: sw, en names: !include country-names/ke.yaml + postcode: + pattern: "ddddd" # Kyrgyzstan (Кыргызстан) @@ -841,6 +895,8 @@ kg: partition: 93 languages: ky, ru names: !include country-names/kg.yaml + postcode: + pattern: "dddddd" # Cambodia (ព្រះរាជាណាចក្រ​កម្ពុជា) @@ -848,6 +904,8 @@ kh: partition: 159 languages: km names: !include country-names/kh.yaml + postcode: + pattern: "dddddd" # Kiribati (Kiribati) @@ -871,6 +929,8 @@ kn: partition: 84 languages: en names: !include country-names/kn.yaml + postcode: + pattern: "dddd" # North Korea (조선민주주의인민공화국) @@ -886,6 +946,8 @@ kr: partition: 49 languages: ko, en names: !include country-names/kr.yaml + postcode: + pattern: "ddddd" # Kuwait (الكويت) @@ -893,6 +955,8 @@ kw: partition: 127 languages: ar names: !include country-names/kw.yaml + postcode: + pattern: "ddddd" # Cayman Islands (Cayman Islands) @@ -900,6 +964,9 @@ ky: partition: 38 languages: en names: !include country-names/ky.yaml + postcode: + pattern: "(d)-(dddd)" + output: KY\1-\2 # Kazakhstan (Қазақстан) @@ -907,6 +974,8 @@ kz: partition: 94 languages: kk, ru names: !include country-names/kz.yaml + postcode: + pattern: "(?:lddldld|dddddd)" # Laos (ປະເທດລາວ) @@ -914,6 +983,8 @@ la: partition: 145 languages: lo names: !include country-names/la.yaml + postcode: + pattern: "ddddd" # Lebanon (لبنان) @@ -921,6 +992,8 @@ lb: partition: 66 languages: ar, fr names: !include country-names/lb.yaml + postcode: + pattern: "(dddd)(?: ?dddd)?" # Saint Lucia (Saint Lucia) @@ -928,6 +1001,9 @@ lc: partition: 146 languages: en names: !include country-names/lc.yaml + postcode: + pattern: "(dd) ?(ddd)" + output: LC\1 \2 # Liechtenstein (Liechtenstein) @@ -935,6 +1011,8 @@ li: partition: 246 languages: de names: !include country-names/li.yaml + postcode: + pattern: "dddd" # Sri Lanka (ශ්‍රී ලංකාව இலங்கை) @@ -942,6 +1020,8 @@ lk: partition: 95 languages: si, ta names: !include country-names/lk.yaml + postcode: + pattern: "ddddd" # Liberia (Liberia) @@ -949,6 +1029,8 @@ lr: partition: 216 languages: en names: !include country-names/lr.yaml + postcode: + pattern: "dddd" # Lesotho (Lesotho) @@ -956,6 +1038,8 @@ ls: partition: 136 languages: en, st names: !include country-names/ls.yaml + postcode: + pattern: "ddd" # Lithuania (Lietuva) @@ -963,6 +1047,8 @@ lt: partition: 67 languages: lt names: !include country-names/lt.yaml + postcode: + pattern: "ddddd" # Luxembourg (Lëtzebuerg) @@ -970,6 +1056,8 @@ lu: partition: 74 languages: lb, fr, de names: !include country-names/lu.yaml + postcode: + pattern: "dddd" # Latvia (Latvija) @@ -977,6 +1065,9 @@ lv: partition: 162 languages: lv names: !include country-names/lv.yaml + postcode: + pattern: "(dddd)" + output: LV-\1 # Libya (ليبيا) @@ -992,6 +1083,8 @@ ma: partition: 23 languages: fr, zgh, ar names: !include country-names/ma.yaml + postcode: + pattern: "ddddd" # Monaco (Monaco) @@ -999,6 +1092,8 @@ mc: partition: 242 languages: fr names: !include country-names/mc.yaml + postcode: + pattern: "980dd" # Moldova (Moldova) @@ -1006,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 / Црна Гора) @@ -1013,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) @@ -1027,6 +1120,8 @@ mg: partition: 164 languages: mg, fr names: !include country-names/mg.yaml + postcode: + pattern: "ddd" # Marshall Islands (Ṃajeḷ) @@ -1034,6 +1129,8 @@ mh: partition: 105 languages: en, mh names: !include country-names/mh.yaml + postcode: + pattern: "ddddd" # North Macedonia (Северна Македонија) @@ -1041,6 +1138,8 @@ mk: partition: 69 languages: mk names: !include country-names/mk.yaml + postcode: + pattern: "dddd" # Mali (Mali) @@ -1056,6 +1155,8 @@ mm: partition: 148 languages: my names: !include country-names/mm.yaml + postcode: + pattern: "ddddd" # Mongolia (Монгол улс ᠮᠤᠩᠭᠤᠯ ᠤᠯᠤᠰ) @@ -1063,28 +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 - postcode: no - - -# 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 (موريتانيا) @@ -1107,6 +1188,9 @@ mt: partition: 165 languages: mt, en names: !include country-names/mt.yaml + postcode: + pattern: "(lll) ?(dddd)" + output: \1 \2 # Mauritius (Mauritius) @@ -1114,6 +1198,8 @@ mu: partition: 150 languages: mfe, fr, en names: !include country-names/mu.yaml + postcode: + pattern: "ddddd" # Maldives (ދިވެހިރާއްޖެ) @@ -1121,6 +1207,8 @@ mv: partition: 96 languages: dv names: !include country-names/mv.yaml + postcode: + pattern: "ddddd" # Malawi (Malawi) @@ -1136,6 +1224,8 @@ mx: partition: 166 languages: es names: !include country-names/mx.yaml + postcode: + pattern: "ddddd" # Malaysia (Malaysia) @@ -1143,6 +1233,8 @@ my: partition: 7 languages: ms names: !include country-names/my.yaml + postcode: + pattern: "ddddd" # Mozambique (Moçambique) @@ -1150,6 +1242,8 @@ mz: partition: 98 languages: pt names: !include country-names/mz.yaml + postcode: + pattern: "(dddd)(?:-dd)?" # Namibia (Namibia) @@ -1157,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) @@ -1171,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) @@ -1185,6 +1269,8 @@ ng: partition: 218 languages: en names: !include country-names/ng.yaml + postcode: + pattern: "dddddd" # Nicaragua (Nicaragua) @@ -1192,6 +1278,8 @@ ni: partition: 151 languages: es names: !include country-names/ni.yaml + postcode: + pattern: "ddddd" # Netherlands (Nederland) @@ -1199,6 +1287,9 @@ nl: partition: 63 languages: nl names: !include country-names/nl.yaml + postcode: + pattern: "(dddd) ?(ll)" + output: \1 \2 # Norway (Norge) @@ -1206,6 +1297,8 @@ nl: partition: 60 languages: nb, nn, no, se names: !include country-names/no.yaml + postcode: + pattern: "dddd" # Nepal (Nepal) @@ -1213,6 +1306,8 @@ np: partition: 50 languages: ne names: !include country-names/np.yaml + postcode: + pattern: "ddddd" # Nauru (Naoero) @@ -1236,6 +1331,8 @@ nz: partition: 27 languages: mi, en names: !include country-names/nz.yaml + postcode: + pattern: "dddd" # Oman (عمان) @@ -1243,6 +1340,8 @@ om: partition: 137 languages: ar names: !include country-names/om.yaml + postcode: + pattern: "ddd" # Panama (Panamá) @@ -1250,6 +1349,8 @@ pa: partition: 152 languages: es names: !include country-names/pa.yaml + postcode: + pattern: "dddd" # Peru (Perú) @@ -1257,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) @@ -1271,6 +1367,8 @@ pg: partition: 71 languages: en, tpi, ho names: !include country-names/pg.yaml + postcode: + pattern: "ddd" # Philippines (Philippines) @@ -1278,6 +1376,8 @@ ph: partition: 26 languages: en, tl names: !include country-names/ph.yaml + postcode: + pattern: "dddd" # Pakistan (پاکستان) @@ -1285,6 +1385,8 @@ pk: partition: 14 languages: en, ur, pnb, sd, ps, bal names: !include country-names/pk.yaml + postcode: + pattern: "ddddd" # Poland (Polska) @@ -1292,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) @@ -1306,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) @@ -1320,6 +1414,8 @@ ps: partition: 194 languages: ar, he names: !include country-names/ps.yaml + postcode: + pattern: "ddd" # Portugal (Portugal) @@ -1327,6 +1423,8 @@ pt: partition: 34 languages: pt names: !include country-names/pt.yaml + postcode: + pattern: "dddd(?:-ddd)?" # Palau (Belau) @@ -1334,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) @@ -1341,6 +1441,8 @@ py: partition: 101 languages: es, gn names: !include country-names/py.yaml + postcode: + pattern: "dddddd" # Qatar (قطر) @@ -1351,18 +1453,13 @@ qa: postcode: no -# (Réunion) -re: - partition: 235 - languages: fr - names: !include country-names/re.yaml - - # Romania (România) ro: partition: 170 languages: ro names: !include country-names/ro.yaml + postcode: + pattern: "dddddd" # Serbia (Србија) @@ -1370,6 +1467,8 @@ rs: partition: 59 languages: sr names: !include country-names/rs.yaml + postcode: + pattern: "ddddd" # Russia (Россия) @@ -1377,6 +1476,8 @@ ru: partition: 135 languages: ru names: !include country-names/ru.yaml + postcode: + pattern: "dddddd" # Rwanda (Rwanda) @@ -1392,6 +1493,8 @@ sa: partition: 52 languages: ar names: !include country-names/sa.yaml + postcode: + pattern: "ddddd(?:-dddd)?" # Solomon Islands (Solomon Islands) @@ -1415,6 +1518,8 @@ sd: partition: 72 languages: ar, en names: !include country-names/sd.yaml + postcode: + pattern: "ddddd" # Sweden (Sverige) @@ -1422,6 +1527,9 @@ se: partition: 112 languages: sv names: !include country-names/se.yaml + postcode: + pattern: "(ddd) ?(dd)" + output: \1 \2 # Singapore (Singapore) @@ -1429,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) @@ -1436,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) @@ -1443,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) @@ -1457,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) @@ -1472,6 +1583,8 @@ sm: partition: 153 languages: it names: !include country-names/sm.yaml + postcode: + pattern: "4789d" # Senegal (Sénégal) @@ -1479,6 +1592,8 @@ sn: partition: 237 languages: fr names: !include country-names/sn.yaml + postcode: + pattern: "ddddd" # Somalia (Soomaaliya الصومال) @@ -1486,6 +1601,9 @@ so: partition: 154 languages: so, ar names: !include country-names/so.yaml + postcode: + pattern: "(ll) ?(ddddd)" + output: \1 \2 # Suriname (Suriname) @@ -1517,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 (سوريا) @@ -1539,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) @@ -1546,6 +1661,9 @@ tc: partition: 106 languages: en names: !include country-names/tc.yaml + postcode: + pattern: "(TKCA) ?(1ZZ)" + output: \1 \2 # Chad (Tchad تشاد) @@ -1556,13 +1674,6 @@ td: postcode: no -# French Southern Lands (Terres australes et antarctiques françaises) -tf: - partition: 132 - languages: fr - names: !include country-names/tf.yaml - - # Togo (Togo) tg: partition: 243 @@ -1576,6 +1687,8 @@ th: partition: 32 languages: th names: !include country-names/th.yaml + postcode: + pattern: "ddddd" # Tajikistan (Тоҷикистон) @@ -1583,6 +1696,8 @@ tj: partition: 129 languages: tg, ru names: !include country-names/tj.yaml + postcode: + pattern: "dddddd" # Tokelau (Tokelau) @@ -1606,6 +1721,8 @@ tm: partition: 54 languages: tk names: !include country-names/tm.yaml + postcode: + pattern: "dddddd" # Tunisia (تونس) @@ -1613,6 +1730,8 @@ tn: partition: 18 languages: ar, fr names: !include country-names/tn.yaml + postcode: + pattern: "dddd" # Tonga (Tonga) @@ -1628,6 +1747,8 @@ tr: partition: 81 languages: tr names: !include country-names/tr.yaml + postcode: + pattern: "ddddd" # Trinidad and Tobago (Trinidad and Tobago) @@ -1635,6 +1756,8 @@ tt: partition: 221 languages: en names: !include country-names/tt.yaml + postcode: + pattern: "dddddd" # Tuvalu (Tuvalu) @@ -1650,6 +1773,8 @@ tw: partition: 25 languages: zh-hant names: !include country-names/tw.yaml + postcode: + pattern: "ddd(?:ddd?)?" # Tanzania (Tanzania) @@ -1657,6 +1782,8 @@ tz: partition: 130 languages: sw, en names: !include country-names/tz.yaml + postcode: + pattern: "ddddd" # Ukraine (Україна) @@ -1664,6 +1791,8 @@ ua: partition: 173 languages: uk names: !include country-names/ua.yaml + postcode: + pattern: "d?ddddd" # Uganda (Uganda) @@ -1674,18 +1803,13 @@ ug: postcode: no -# (United States Minor Outlying Islands) -um: - partition: 198 - languages: en - names: !include country-names/um.yaml - - # United States (United States) us: partition: 2 languages: en names: !include country-names/us.yaml + postcode: + pattern: "ddddd" # Uruguay (Uruguay) @@ -1693,6 +1817,8 @@ uy: partition: 174 languages: es names: !include country-names/uy.yaml + postcode: + pattern: "ddddd" # Uzbekistan (Oʻzbekiston) @@ -1700,6 +1826,8 @@ uz: partition: 157 languages: uz, kaa names: !include country-names/uz.yaml + postcode: + pattern: "dddddd" # Vatican City (Civitas Vaticana) @@ -1707,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) @@ -1714,6 +1844,9 @@ vc: partition: 171 languages: en names: !include country-names/vc.yaml + postcode: + pattern: "(dddd)" + output: VC\1 # Venezuela (Venezuela) @@ -1721,6 +1854,8 @@ ve: partition: 108 languages: es names: !include country-names/ve.yaml + postcode: + pattern: "dddd" # British Virgin Islands (British Virgin Islands) @@ -1728,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) @@ -1742,6 +1873,8 @@ vn: partition: 75 languages: vi names: !include country-names/vn.yaml + postcode: + pattern: "ddddd" # Vanuatu (Vanuatu) @@ -1752,13 +1885,6 @@ vu: postcode: no -# Wallis and Futuna Islands (Wallis-et-Futuna) -wf: - partition: 238 - languages: fr - names: !include country-names/wf.yaml - - # Samoa (Sāmoa) ws: partition: 131 @@ -1771,6 +1897,8 @@ xk: partition: 59 languages: sq, sr names: !include country-names/xk.yaml + postcode: + pattern: "ddddd" # Yemen (اليمن) @@ -1781,18 +1909,13 @@ ye: postcode: no -# Mayotte (Mayotte) -yt: - partition: 200 - languages: fr - names: !include country-names/yt.yaml - - # South Africa (South Africa) za: partition: 76 languages: en, af, st, tn, xh, zu names: !include country-names/za.yaml + postcode: + pattern: "dddd" # Zambia (Zambia) @@ -1800,6 +1923,8 @@ zm: partition: 222 languages: en names: !include country-names/zm.yaml + postcode: + pattern: "dddd" # Zimbabwe (Zimbabwe)