From 07d842e7c73c9cc5160953ade2bdce985b403440 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Fri, 19 Jul 2019 07:13:22 +0200 Subject: [PATCH] tourism_services: improve tourism=information; rewrite queries to use 'nwr' - for tourism=information, show type of information, also include information=office from z13 --- tourism_services.json | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tourism_services.json b/tourism_services.json index 0a7f5dd7..15416f8a 100644 --- a/tourism_services.json +++ b/tourism_services.json @@ -22,17 +22,14 @@ "query": { "13": [ "(", - "node[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|motel|wilderness_hut)$\"];", - "way[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|motel|wilderness_hut)$\"];", - "relation[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|motel|wilderness_hut)$\"];", + "nwr[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|motel|wilderness_hut)$\"];", "nwr[office~\"^(guide|tourism|tourist_accommodation|camping)$\"];", + "nwr[tourism=information][information~\"^(office)$\"];", ")" ], "16": [ "(", - "node[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|information|motel|wilderness_hut)$\"];", - "way[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|information|motel|wilderness_hut)$\"];", - "relation[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|information|motel|wilderness_hut)$\"];", + "nwr[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|information|motel|wilderness_hut)$\"];", "nwr[office~\"^(guide|tourism|tourist_accommodation|camping)$\"];", ")" ] @@ -52,6 +49,10 @@ " {{ keyTrans('office') }} ({{ tagTrans('office', tags.office) }})", "{% else %}", " {{ tagTrans(key, value) }}", + "{% endif %}", + "", + "{% if tags.tourism == 'information' and tags.information %}", + "- {{ tagTransList('information', tags.information) }}", "{% endif %}" ], "markerSign": [