Main categories of OpenStreetBrowser with public transport zoom level
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

7 years ago
  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ast": "Turismu",
  5. "cs": "Turistika",
  6. "de": "Tourismus",
  7. "el": "Τουρισμός",
  8. "en": "Tourism",
  9. "et": "Turism",
  10. "fr": "Tourisme",
  11. "hu": "Szálláshelyek, turisztikai információk",
  12. "it": "Turismo",
  13. "ja": "観光",
  14. "nl": "Toerisme",
  15. "pl": "Turystyka",
  16. "pt": "Turismo",
  17. "pt-br": "Serviços turísticos",
  18. "ro": "Turism",
  19. "ru": "Туризм",
  20. "uk": "Туризм"
  21. },
  22. "query": {
  23. "13": [
  24. "(",
  25. "node[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|motel|wilderness_hut)$\"];",
  26. "way[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|motel|wilderness_hut)$\"];",
  27. "relation[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|motel|wilderness_hut)$\"];",
  28. "nwr[office~\"^(guide|tourism|tourist_accommodation|camping)$\"];",
  29. ")"
  30. ],
  31. "16": [
  32. "(",
  33. "node[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|information|motel|wilderness_hut)$\"];",
  34. "way[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|information|motel|wilderness_hut)$\"];",
  35. "relation[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|information|motel|wilderness_hut)$\"];",
  36. "nwr[office~\"^(guide|tourism|tourist_accommodation|camping)$\"];",
  37. ")"
  38. ]
  39. },
  40. "feature": {
  41. "pre": [
  42. "{% if tags.tourism %}",
  43. " {% set key = 'tourism' %}",
  44. " {% set value = tags.tourism %}",
  45. "{% else %}",
  46. " {% set key = 'office' %}",
  47. " {% set value = tags.office %}",
  48. "{% endif %}"
  49. ],
  50. "description": [
  51. "{% if key == 'office' %}",
  52. " {{ keyTrans('office') }} ({{ tagTrans('office', tags.office) }})",
  53. "{% else %}",
  54. " {{ tagTrans(key, value) }}",
  55. "{% endif %}"
  56. ],
  57. "markerSign": [
  58. "{% set data = const[key ~ '=' ~ value] %}",
  59. "{% if data %}",
  60. "{{ data.sign|raw }}",
  61. "{% endif %}"
  62. ]
  63. },
  64. "info": [
  65. "<table>",
  66. "{% for kv, data in const %}",
  67. "{% if data.zoom <= map.zoom %}",
  68. " <tr>",
  69. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  70. " <td>",
  71. " {% if kv|split('=')[0] == 'office' %}",
  72. " {{ keyTrans('office') }}",
  73. " ({{ tagTrans('office', kv|split('=')[1]) }})",
  74. " {% else %}",
  75. " {{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}",
  76. " {% endif %}",
  77. " </td>",
  78. " </tr>",
  79. "{% endif %}",
  80. "{% endfor %}",
  81. "</table>"
  82. ],
  83. "const": {
  84. "tourism=alpine_hut": {
  85. "sign": "🛌",
  86. "zoom": 13
  87. },
  88. "tourism=apartment": {
  89. "sign": "🛌",
  90. "zoom": 13
  91. },
  92. "tourism=camp_site": {
  93. "sign": "⛺",
  94. "zoom": 13
  95. },
  96. "tourism=caravan_site": {
  97. "sign": "⛺",
  98. "zoom": 13
  99. },
  100. "tourism=chalet": {
  101. "sign": "🛌",
  102. "zoom": 13
  103. },
  104. "tourism=guest_house": {
  105. "sign": "🛌",
  106. "zoom": 13
  107. },
  108. "tourism=hostel": {
  109. "sign": "🛌",
  110. "zoom": 13
  111. },
  112. "tourism=hotel": {
  113. "sign": "🛌",
  114. "zoom": 13
  115. },
  116. "tourism=motel": {
  117. "sign": "🛌",
  118. "zoom": 13
  119. },
  120. "tourism=wilderness_hut": {
  121. "sign": "",
  122. "zoom": 13
  123. },
  124. "office=tourism": {
  125. "sign": "<i class=\"fas fa-info-circle\"></i>",
  126. "zoom": 13
  127. },
  128. "office=guide": {
  129. "sign": "<i class=\"fas fa-flag\"></i>",
  130. "zoom": 13
  131. },
  132. "office=tourist_accommodation": {
  133. "sign": "🛌",
  134. "zoom": 13
  135. },
  136. "office=camping": {
  137. "sign": "⛺",
  138. "zoom": 13
  139. },
  140. "tourism=information": {
  141. "sign": "ℹ️",
  142. "zoom": 16
  143. }
  144. },
  145. "filter": {
  146. "type": {
  147. "name": "{{ trans('filter:type') }}",
  148. "show_default": "true",
  149. "type": "select",
  150. "values": "{% for k, v in const %}<option value=\"{{ k }}\" query=\"nwr[{{ k }}]\" minzoom=\"{{ v.zoom }}\">{{ trans('tag:' ~ k) }}</option>{% endfor %}"
  151. }
  152. }
  153. }