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.

165 lines
4.8 KiB

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