Main categories of OpenStreetBrowser
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

153 lines
4.8 KiB

{
"type": "overpass",
"name": {
"ast": "Turismu",
"cs": "Turistika",
"de": "Tourismus",
"el": "Τουρισμός",
"en": "Tourism",
"et": "Turism",
"fr": "Tourisme",
"hu": "Szálláshelyek, turisztikai információk",
"it": "Turismo",
"ja": "観光",
"nl": "Toerisme",
"pl": "Turystyka",
"pt": "Turismo",
"pt-br": "Serviços turísticos",
"ro": "Turism",
"ru": "Туризм",
"uk": "Туризм"
},
"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[office~\"^(guide|tourism|tourist_accommodation|camping)$\"];",
")"
],
"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[office~\"^(guide|tourism|tourist_accommodation|camping)$\"];",
")"
]
},
"feature": {
"pre": [
"{% if tags.tourism %}",
" {% set key = 'tourism' %}",
" {% set value = tags.tourism %}",
"{% else %}",
" {% set key = 'office' %}",
" {% set value = tags.office %}",
"{% endif %}"
],
"description": [
"{% if key == 'office' %}",
" {{ keyTrans('office') }} ({{ tagTrans('office', tags.office) }})",
"{% else %}",
" {{ tagTrans(key, value) }}",
"{% endif %}"
],
"markerSign": [
"{% set data = const[key ~ '=' ~ value] %}",
"{% if data %}",
"{{ data.sign|raw }}",
"{% endif %}"
]
},
"info": [
"<table>",
"{% for kv, data in const %}",
"{% if data.zoom <= map.zoom %}",
" <tr>",
" <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
" <td>",
" {% if kv|split('=')[0] == 'office' %}",
" {{ keyTrans('office') }}",
" ({{ tagTrans('office', kv|split('=')[1]) }})",
" {% else %}",
" {{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}",
" {% endif %}",
" </td>",
" </tr>",
"{% endif %}",
"{% endfor %}",
"</table>"
],
"const": {
"tourism=alpine_hut": {
"sign": "🛌",
"zoom": 13
},
"tourism=apartment": {
"sign": "🛌",
"zoom": 13
},
"tourism=camp_site": {
"sign": "⛺",
"zoom": 13
},
"tourism=caravan_site": {
"sign": "⛺",
"zoom": 13
},
"tourism=chalet": {
"sign": "🛌",
"zoom": 13
},
"tourism=guest_house": {
"sign": "🛌",
"zoom": 13
},
"tourism=hostel": {
"sign": "🛌",
"zoom": 13
},
"tourism=hotel": {
"sign": "🛌",
"zoom": 13
},
"tourism=motel": {
"sign": "🛌",
"zoom": 13
},
"tourism=wilderness_hut": {
"sign": "",
"zoom": 13
},
"office=tourism": {
"sign": "<i class=\"fas fa-info-circle\"></i>",
"zoom": 13
},
"office=guide": {
"sign": "<i class=\"fas fa-flag\"></i>",
"zoom": 13
},
"office=tourist_accommodation": {
"sign": "🛌",
"zoom": 13
},
"office=camping": {
"sign": "⛺",
"zoom": 13
},
"tourism=information": {
"sign": "ℹ️",
"zoom": 16
}
},
"filter": {
"type": {
"name": "{{ trans('filter:type') }}",
"show_default": "true",
"type": "select",
"values": "{% for k, v in const %}<option value=\"{{ k }}\" query=\"nwr[{{ k }}]\" minzoom=\"{{ v.zoom }}\">{{ tagTrans(k) }}</option>{% endfor %}"
}
}
}