forked from hans/Nominatim
exclude more tourism=information types
This commit is contained in:
@@ -190,7 +190,10 @@ module.MAIN_TAGS_POIS = function (group)
|
|||||||
historic = {'always',
|
historic = {'always',
|
||||||
yes = group,
|
yes = group,
|
||||||
no = 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',
|
junction = {'fallback',
|
||||||
no = group},
|
no = group},
|
||||||
leisure = {'always',
|
leisure = {'always',
|
||||||
@@ -228,7 +231,7 @@ module.MAIN_TAGS_POIS = function (group)
|
|||||||
tourism = {'always',
|
tourism = {'always',
|
||||||
no = group,
|
no = group,
|
||||||
yes = group,
|
yes = group,
|
||||||
information = 'fallback'},
|
information = exclude_when_key_present('information')},
|
||||||
tunnel = {'named_with_key',
|
tunnel = {'named_with_key',
|
||||||
no = group}
|
no = group}
|
||||||
} end
|
} end
|
||||||
|
|||||||
@@ -232,15 +232,19 @@ Feature: Tag evaluation
|
|||||||
n101 Ttourism=information,name=Generic
|
n101 Ttourism=information,name=Generic
|
||||||
n102 Ttourism=information,information=guidepost
|
n102 Ttourism=information,information=guidepost
|
||||||
n103 Thighway=information,information=house
|
n103 Thighway=information,information=house
|
||||||
|
n104 Ttourism=information,information=yes,name=Something
|
||||||
|
n105 Ttourism=information,information=route_marker,name=3
|
||||||
"""
|
"""
|
||||||
Then place contains exactly
|
Then place contains exactly
|
||||||
| object | type |
|
| object | type |
|
||||||
|
| N100:tourism | information |
|
||||||
| N101:tourism | information |
|
| N101:tourism | information |
|
||||||
| N102:information | guidepost |
|
| N102:information | guidepost |
|
||||||
| N103:highway | information |
|
| N103:highway | information |
|
||||||
|
| N104:tourism | information |
|
||||||
|
|
||||||
|
|
||||||
Scenario: Water feautures
|
Scenario: Water features
|
||||||
When loading osm data
|
When loading osm data
|
||||||
"""
|
"""
|
||||||
n20 Tnatural=water
|
n20 Tnatural=water
|
||||||
|
|||||||
Reference in New Issue
Block a user