]> git.openstreetmap.org Git - nominatim.git/commitdiff
exclude more tourism=information types
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 16 Dec 2024 09:44:37 +0000 (10:44 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 16 Dec 2024 09:44:37 +0000 (10:44 +0100)
lib-lua/themes/nominatim/presets.lua
test/bdd/osm2pgsql/import/tags.feature

index 7afb204a7694b93d9a14108455beadb37dd25984..aa51ac14c70a192cdf7dd93b577f6715b04c3bdc 100644 (file)
@@ -190,7 +190,10 @@ module.MAIN_TAGS_POIS = function (group)
     historic = {'always',
                 yes = group,
                 no = group},
     historic = {'always',
                 yes = group,
                 no = group},
-    information = {include_when_tag_present('tourism', 'information')},
+    information = {include_when_tag_present('tourism', 'information'),
+                   yes = 'delete',
+                   route_marker = 'never',
+                   trail_blaze = 'never'},
     junction = {'fallback',
                 no = group},
     leisure = {'always',
     junction = {'fallback',
                 no = group},
     leisure = {'always',
@@ -228,7 +231,7 @@ module.MAIN_TAGS_POIS = function (group)
     tourism = {'always',
                no = group,
                yes = group,
     tourism = {'always',
                no = group,
                yes = group,
-               information = 'fallback'},
+               information = exclude_when_key_present('information')},
     tunnel = {'named_with_key',
               no = group}
 } end
     tunnel = {'named_with_key',
               no = group}
 } end
index f4ebe7adf23908b7547a0ce648e7ee0fe6968184..69238e797b62f5f8169cbb5cef345f534b24370d 100644 (file)
@@ -232,15 +232,19 @@ Feature: Tag evaluation
             n101 Ttourism=information,name=Generic
             n102 Ttourism=information,information=guidepost
             n103 Thighway=information,information=house
             n101 Ttourism=information,name=Generic
             n102 Ttourism=information,information=guidepost
             n103 Thighway=information,information=house
+            n104 Ttourism=information,information=yes,name=Something
+            n105 Ttourism=information,information=route_marker,name=3
             """
         Then place contains exactly
             | object           | type        |
             """
         Then place contains exactly
             | object           | type        |
+            | N100:tourism     | information |
             | N101:tourism     | information |
             | N102:information | guidepost   |
             | N103:highway     | information |
             | N101:tourism     | information |
             | N102:information | guidepost   |
             | N103:highway     | information |
+            | N104:tourism     | information |
 
 
 
 
-    Scenario: Water feautures
+    Scenario: Water features
         When loading osm data
             """
             n20 Tnatural=water
         When loading osm data
             """
             n20 Tnatural=water