]> git.openstreetmap.org Git - nominatim.git/commitdiff
add postcode formats with optional country code
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 23 May 2022 09:10:35 +0000 (11:10 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 23 Jun 2022 21:42:31 +0000 (23:42 +0200)
If the country code is not part of the mandatory output, the
country code filter will do the correct handling.

settings/country_settings.yaml

index 684b0e44e949332e59c0d03e8e9c43332ed19c53..adb7593ed538f1def1d39a2fe0c1f70928c62632 100644 (file)
@@ -131,6 +131,8 @@ az:
     partition: 119
     languages: az
     names: !include country-names/az.yaml
+    postcode:
+      pattern: "dddd"
 
 
 # Bosnia and Herzegovina (Bosna i Hercegovina / Босна и Херцеговина)
@@ -513,6 +515,8 @@ ec:
     partition: 78
     languages: es
     names: !include country-names/ec.yaml
+    postcode:
+      pattern: "dddddd"
 
 
 # Estonia (Eesti)
@@ -606,6 +610,8 @@ fo:
     partition: 10
     languages: fo, da
     names: !include country-names/fo.yaml
+    postcode:
+      pattern: "ddd"
 
 
 # France (France)
@@ -804,6 +810,8 @@ ht:
     partition: 29
     languages: fr, ht
     names: !include country-names/ht.yaml
+    postcode:
+      pattern: "dddd"
 
 
 # Hungary (Magyarország)
@@ -1083,6 +1091,8 @@ lt:
     partition: 67
     languages: lt
     names: !include country-names/lt.yaml
+    postcode:
+      pattern: "ddddd"
 
 
 # Luxembourg (Lëtzebuerg)