]> git.openstreetmap.org Git - nominatim.git/commitdiff
enable parsing of US ZIP+ codes
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 25 Feb 2025 19:29:06 +0000 (20:29 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 25 Feb 2025 19:29:06 +0000 (20:29 +0100)
The four-digit part of these postcodes will simply be ignored.

settings/country_settings.yaml

index 667684c670a0dacb46b1d052f4a4f82547c3ed83..a2ca7412289c72dab67f4d1571164f33dea30f7e 100644 (file)
@@ -1809,7 +1809,8 @@ us:
     languages: en
     names: !include country-names/us.yaml
     postcode:
-      pattern: "ddddd"
+      pattern: "(ddddd)(?:-dddd)?"
+      output: \1
 
 
 # Uruguay (Uruguay)