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.

158 lines
4.7 KiB

6 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. "nwr[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|motel|wilderness_hut|trail_riding_station)$\"];",
  26. "nwr[office~\"^(guide|tourism|tourist_accommodation|camping)$\"];",
  27. "nwr[tourism=information][information~\"^(office)$\"];",
  28. ")"
  29. ],
  30. "16": [
  31. "(",
  32. "nwr[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|information|motel|wilderness_hut|trail_riding_station)$\"];",
  33. "nwr[office~\"^(guide|tourism|tourist_accommodation|camping)$\"];",
  34. ")"
  35. ]
  36. },
  37. "feature": {
  38. "pre": [
  39. "{% if tags.tourism %}",
  40. " {% set key = 'tourism' %}",
  41. " {% set value = tags.tourism %}",
  42. "{% else %}",
  43. " {% set key = 'office' %}",
  44. " {% set value = tags.office %}",
  45. "{% endif %}"
  46. ],
  47. "description": [
  48. "{% if key == 'office' %}",
  49. " {{ keyTrans('office') }} ({{ tagTrans('office', tags.office) }})",
  50. "{% else %}",
  51. " {{ tagTrans(key, value) }}",
  52. "{% endif %}",
  53. "",
  54. "{% if tags.tourism == 'information' and tags.information %}",
  55. "- {{ tagTransList('information', tags.information) }}",
  56. "{% endif %}"
  57. ],
  58. "markerSign": [
  59. "{% set data = const[key ~ '=' ~ value] %}",
  60. "{% if data %}",
  61. "{{ data.sign|raw }}",
  62. "{% endif %}"
  63. ]
  64. },
  65. "info": [
  66. "<table>",
  67. "{% for kv, data in const %}",
  68. "{% if data.zoom <= map.zoom %}",
  69. " <tr>",
  70. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  71. " <td>",
  72. " {% if kv|split('=')[0] == 'office' %}",
  73. " {{ keyTrans('office') }}",
  74. " ({{ tagTrans('office', kv|split('=')[1]) }})",
  75. " {% else %}",
  76. " {{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}",
  77. " {% endif %}",
  78. " </td>",
  79. " </tr>",
  80. "{% endif %}",
  81. "{% endfor %}",
  82. "</table>"
  83. ],
  84. "const": {
  85. "tourism=alpine_hut": {
  86. "sign": "🛌",
  87. "zoom": 13
  88. },
  89. "tourism=apartment": {
  90. "sign": "🛌",
  91. "zoom": 13
  92. },
  93. "tourism=camp_site": {
  94. "sign": "⛺",
  95. "zoom": 13
  96. },
  97. "tourism=caravan_site": {
  98. "sign": "⛺",
  99. "zoom": 13
  100. },
  101. "tourism=chalet": {
  102. "sign": "🛌",
  103. "zoom": 13
  104. },
  105. "tourism=guest_house": {
  106. "sign": "🛌",
  107. "zoom": 13
  108. },
  109. "tourism=hostel": {
  110. "sign": "🛌",
  111. "zoom": 13
  112. },
  113. "tourism=hotel": {
  114. "sign": "🛌",
  115. "zoom": 13
  116. },
  117. "tourism=motel": {
  118. "sign": "🛌",
  119. "zoom": 13
  120. },
  121. "tourism=wilderness_hut": {
  122. "sign": "",
  123. "zoom": 13
  124. },
  125. "tourism=trail_riding_station": {
  126. "sign": "<img data-src='maki:horse-riding'>",
  127. "zoom": 13
  128. },
  129. "office=tourism": {
  130. "sign": "<i class=\"fas fa-info-circle\"></i>",
  131. "zoom": 13
  132. },
  133. "office=guide": {
  134. "sign": "<i class=\"fas fa-flag\"></i>",
  135. "zoom": 13
  136. },
  137. "office=tourist_accommodation": {
  138. "sign": "🛌",
  139. "zoom": 13
  140. },
  141. "office=camping": {
  142. "sign": "⛺",
  143. "zoom": 13
  144. },
  145. "tourism=information": {
  146. "sign": "ℹ️",
  147. "zoom": 16
  148. }
  149. },
  150. "filter": {
  151. "type": {
  152. "name": "{{ trans('filter:type') }}",
  153. "show_default": "true",
  154. "type": "select",
  155. "values": "{% for k, v in const %}<option value=\"{{ k }}\" query=\"nwr[{{ k }}]\" minzoom=\"{{ v.zoom }}\">{{ trans('tag:' ~ k) }}</option>{% endfor %}"
  156. }
  157. }
  158. }