Skip to content

Commit 2535780

Browse files
committed
exclude more tourism=information types
1 parent 48333bf commit 2535780

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Diff for: lib-lua/themes/nominatim/presets.lua

+5-2
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@ module.MAIN_TAGS_POIS = function (group)
190190
historic = {'always',
191191
yes = group,
192192
no = group},
193-
information = {include_when_tag_present('tourism', 'information')},
193+
information = {include_when_tag_present('tourism', 'information'),
194+
yes = 'delete',
195+
route_marker = 'never',
196+
trail_blaze = 'never'},
194197
junction = {'fallback',
195198
no = group},
196199
leisure = {'always',
@@ -228,7 +231,7 @@ module.MAIN_TAGS_POIS = function (group)
228231
tourism = {'always',
229232
no = group,
230233
yes = group,
231-
information = 'fallback'},
234+
information = exclude_when_key_present('information')},
232235
tunnel = {'named_with_key',
233236
no = group}
234237
} end

Diff for: test/bdd/osm2pgsql/import/tags.feature

+5-1
Original file line numberDiff line numberDiff line change
@@ -232,15 +232,19 @@ Feature: Tag evaluation
232232
n101 Ttourism=information,name=Generic
233233
n102 Ttourism=information,information=guidepost
234234
n103 Thighway=information,information=house
235+
n104 Ttourism=information,information=yes,name=Something
236+
n105 Ttourism=information,information=route_marker,name=3
235237
"""
236238
Then place contains exactly
237239
| object | type |
240+
| N100:tourism | information |
238241
| N101:tourism | information |
239242
| N102:information | guidepost |
240243
| N103:highway | information |
244+
| N104:tourism | information |
241245

242246

243-
Scenario: Water feautures
247+
Scenario: Water features
244248
When loading osm data
245249
"""
246250
n20 Tnatural=water

0 commit comments

Comments
 (0)