]> git.openstreetmap.org Git - nominatim.git/commitdiff
change default rank for highway objects to 30
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 24 Nov 2021 13:40:23 +0000 (14:40 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 24 Nov 2021 21:10:40 +0000 (22:10 +0100)
The highway key is being used more and more for non-ways these
days. This clashes with Nominatim's assumption that essentially
everything that has a highway tag can be used as the street part
of the address.

Change the default rank of highway objects to 30 to avoid this.
Only the known values for streets keep the rank 26 and are now
listed explicitly.

settings/address-levels.json
test/bdd/db/import/placex.feature

index fc31a6542e3f6927ee5edde542a78f3f4b84d9b8..67bca991929d6e1974e52d98994f414b685b1651 100644 (file)
@@ -82,7 +82,7 @@
           "" : [20, 0]
       },
       "highway" : {
           "" : [20, 0]
       },
       "highway" : {
-          "" : 26,
+          "" : 30,
           "service" : 27,
           "cycleway" : 27,
           "path" : 27,
           "service" : 27,
           "cycleway" : 27,
           "path" : 27,
           "primary_link" : 27,
           "trunk_link" : 27,
           "secondary_link" : 27,
           "primary_link" : 27,
           "trunk_link" : 27,
           "secondary_link" : 27,
-          "tertiary_link" : 27
+          "tertiary_link" : 27,
+          "residential" : 26,
+          "track" : 26,
+          "unclassified" : 26,
+          "tertiary" : 26,
+          "secondary" : 26,
+          "primary" : 26,
+          "living_street" : 26,
+          "trunk" : 26,
+          "motorway" : 26,
+          "pedestrian" : 26,
+          "road" : 26,
+          "construction" : 26
       },
       "mountain_pass" : {
           "" : [20, 0]
       },
       "mountain_pass" : {
           "" : [20, 0]
index db36ab58b3e52c7f815ce2addfef7a111c6c3c26..9b208775703fad191879500cd96398574d84fbc7 100644 (file)
@@ -176,7 +176,7 @@ Feature: Import into placex
           | W3     | 26          | 26 |
           | W4     | 26          | 26 |
           | W5     | 26          | 26 |
           | W3     | 26          | 26 |
           | W4     | 26          | 26 |
           | W5     | 26          | 26 |
-          | W6     | 26          | 26 |
+          | W6     | 30          | 30 |
 
     Scenario: rank and inclusion of landuses
         Given the named places
 
     Scenario: rank and inclusion of landuses
         Given the named places