]> git.openstreetmap.org Git - nominatim.git/commitdiff
flex style: reinstate postcode boundaries
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 3 Apr 2023 07:17:50 +0000 (09:17 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 3 Apr 2023 07:17:50 +0000 (09:17 +0200)
Postcode boundaries don't have a name, so need to be imported
unconditionally.

settings/import-address.lua
settings/import-extratags.lua
settings/import-full.lua
settings/import-street.lua
test/bdd/osm2pgsql/import/tags.feature

index 46ab3421352b38d8e8718c850fe26856131963d7..43248b02efb5a9f0c48b1c6508f144fdcf10cce5 100644 (file)
@@ -17,7 +17,7 @@ flex.set_main_tags{
                secondary_link = 'named',
                tertiary_link = 'named'},
     boundary = {administrative = 'named',
                secondary_link = 'named',
                tertiary_link = 'named'},
     boundary = {administrative = 'named',
-                postal_code = 'named'},
+                postal_code = 'always'},
     landuse = 'fallback',
     place = 'always'
 }
     landuse = 'fallback',
     place = 'always'
 }
index 5feed1beea3b969d23fd8a43d6aefbb2af2b6f61..fd9a15f3ba34629ca890e0452812df7d0faa8c2b 100644 (file)
@@ -27,7 +27,7 @@ flex.set_main_tags{
     man_made = 'always',
     aerialway = 'always',
     boundary = {'named',
     man_made = 'always',
     aerialway = 'always',
     boundary = {'named',
-                postal_code = 'named'},
+                postal_code = 'always'},
     aeroway = 'always',
     amenity = 'always',
     club = 'always',
     aeroway = 'always',
     amenity = 'always',
     club = 'always',
index d778d5d4ac6564be63569f9488536337c44a645b..1b64124dfcb4aa85411a35a6e293f4b166f3771a 100644 (file)
@@ -27,7 +27,7 @@ flex.set_main_tags{
     man_made = 'always',
     aerialway = 'always',
     boundary = {'named',
     man_made = 'always',
     aerialway = 'always',
     boundary = {'named',
-                postal_code = 'named'},
+                postal_code = 'always'},
     aeroway = 'always',
     amenity = 'always',
     club = 'always',
     aeroway = 'always',
     amenity = 'always',
     club = 'always',
index 1718874d21f5c41d757f902bd0cffc74d68b32cd..68ad48bdf89305619612ffb629f1310ac3a89c6e 100644 (file)
@@ -16,7 +16,8 @@ flex.set_main_tags{
                primary_link = 'named',
                secondary_link = 'named',
                tertiary_link = 'named'},
                primary_link = 'named',
                secondary_link = 'named',
                tertiary_link = 'named'},
-    boundary = {administrative = 'named'},
+    boundary = {administrative = 'named',
+                postal_code = 'always'},
     landuse = 'fallback',
     place = 'always'
 }
     landuse = 'fallback',
     place = 'always'
 }
index c2ab736aa38859cb51ee3fa6e711c71defa2c0b8..7958f4b35bd8efd0f49ea0e9492543cfbab21c66 100644 (file)
@@ -101,6 +101,19 @@ Feature: Tag evaluation
             | N6003  | shop  | -                   |
 
 
             | N6003  | shop  | -                   |
 
 
+    Scenario: Postcode areas
+        When loading osm data
+            """
+            n1 x12.36853 y51.50618
+            n2 x12.36853 y51.42362
+            n3 x12.63666 y51.42362
+            n4 x12.63666 y51.50618
+            w1 Tboundary=postal_code,ref=3456 Nn1,n2,n3,n4,n1
+            """
+        Then place contains exactly
+            | object | class    | type        | name          |
+            | W1     | boundary | postal_code | 'ref': '3456' |
+
     Scenario: Main with extra
         When loading osm data
             """
     Scenario: Main with extra
         When loading osm data
             """