]> git.openstreetmap.org Git - nominatim.git/commitdiff
ignore 5+ postcodes in the US for now
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 23 Jun 2022 14:17:47 +0000 (16:17 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 24 Jun 2022 17:24:22 +0000 (19:24 +0200)
Hierarchical postcodes need a different treatment.

settings/country_settings.yaml

index 14d08de3a30098faf19946c811290e9c5ce92499..b0bacdfcc5d4dc60c944d4a14cfaf9e455a897d8 100644 (file)
@@ -1998,7 +1998,7 @@ ua:
     languages: uk
     names: !include country-names/ua.yaml
     postcode:
-      pattern: "ddddd"
+      pattern: "d?ddddd"
 
 
 # Uganda (Uganda)
@@ -2024,7 +2024,7 @@ us:
     languages: en
     names: !include country-names/us.yaml
     postcode:
-      pattern: "(ddddd)(?:-dddd)?"
+      pattern: "ddddd"
 
 
 # Uruguay (Uruguay)