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.

142 lines
5.9 KiB

7 years ago
7 years ago
7 years ago
7 years ago
6 years ago
6 years ago
6 years ago
  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ast": "Cultura",
  5. "ca": "Cultura",
  6. "cs": "Kultura",
  7. "de": "Kultur",
  8. "el": "Πολιτισμός",
  9. "en": "Culture",
  10. "es": "Cultura",
  11. "et": "Kultuur",
  12. "fr": "Culture",
  13. "hu": "Kultúra",
  14. "it": "Cultura",
  15. "ja": "文化",
  16. "nl": "Cultuur",
  17. "pl": "Kultura",
  18. "pt": "Cultura",
  19. "pt-br": "Cultura",
  20. "ro": "Cultura",
  21. "ru": "Культура",
  22. "uk": "Культура "
  23. },
  24. "query": {
  25. "13": [
  26. "(",
  27. "node[amenity~\"^(arts_centre|cinema|community_centre|fountain|studio|theatre)$\"];",
  28. "way[amenity~\"^(arts_centre|cinema|community_centre|fountain|studio|theatre)$\"];",
  29. "relation[amenity~\"^(arts_centre|cinema|community_centre|fountain|studio|theatre)$\"];",
  30. "node[tourism~\"^(artwork|gallery|museum|theme_park)$\"];",
  31. "way[tourism~\"^(artwork|gallery|museum|theme_park)$\"];",
  32. "relation[tourism~\"^(artwork|gallery|museum|theme_park)$\"];",
  33. "nwr[amenity=clock][display~\"^(sundial|unorthodox)$\"];",
  34. "nwr[amenity=clock][\"display:sundial\"];",
  35. "nwr[amenity=clock][\"display:unorthodox\"];",
  36. "nwr[shop~\"^(art)$\"];",
  37. ")"
  38. ]
  39. },
  40. "feature": {
  41. "pre": [
  42. "{% if tags.amenity in [ 'arts_centre', 'cinema', 'community_centre', 'fountain', 'studio', 'theatre', 'clock' ] %}",
  43. "{% set key = 'amenity' %}",
  44. "{% set value = tags.amenity %}",
  45. "{% elseif tags.tourism %}",
  46. "{% set key = 'tourism' %}",
  47. "{% set value = tags.tourism %}",
  48. "{% elseif tags.shop %}",
  49. "{% set key = 'shop' %}",
  50. "{% set value = tags.shop %}",
  51. "{% endif %}"
  52. ],
  53. "description": [
  54. "{% if key == 'shop' %}",
  55. " {{ keyTrans(key) }} ({{ tagTrans(key, value) }})",
  56. "{% elseif tags.amenity == 'clock' %}",
  57. " {% if tags.display == 'sundial' or attribute(tags, 'display:sundial') %}{{ tagTrans('amenity', 'clock display=sundial') }}{% endif %}",
  58. " {% if tags.display == 'unorthodox' or attribute(tags, 'display:unorthodox') %}{{ tagTrans('amenity', 'clock display=unorthodox') }}{% endif %}",
  59. "{% else %}",
  60. " {{ tagTrans(key, value) }}",
  61. "{% endif %}",
  62. "",
  63. "{% if tags.tourism == 'museum' and tags.museum %}",
  64. "({{ tagTrans('museum', tags.museum) }})",
  65. "{% endif %}",
  66. "{% if tags.amenity == 'theatre' and attribute(tags, 'theatre:genre') %}",
  67. "({{ tagTrans('theatre:genre', attribute(tags, 'theatre:genre')) }})",
  68. "{% endif %}",
  69. "{% if tags.amenity == 'community_centre' and tags.community_centre %}",
  70. "({{ tagTrans('community_centre', tags.community_centre) }})",
  71. "{% endif %}"
  72. ],
  73. "body": [
  74. "<ul>",
  75. "{% if tags.inscription %}",
  76. " <li class='hasSymbol'>",
  77. " <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>",
  78. " <span class='key'>{{ keyTrans('inscription') }}:</span>",
  79. " <span class='value'>{{ localizedTag(tags, 'inscription') }}</span>",
  80. " </li>",
  81. "{% elseif attribute(tags, 'inscription:url') %}",
  82. " <li class='hasSymbol'>",
  83. " <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>",
  84. " <span class='key'><a href=\"{{ attribute(tags, 'inscription:url') }}\">{{ keyTrans('inscription') }}</a></span>",
  85. " </li>",
  86. "{% endif %}",
  87. "",
  88. "{% if tags.artist_name %}",
  89. " <li class='hasSymbol'>",
  90. " <i class=\"fa fa-palette\" aria-hidden=\"true\"></i>",
  91. " <span class='key'>{{ keyTrans('artist_name') }}:</span>",
  92. " <span class='value'>{{ enumerate(tags.artist_name) }}</span>",
  93. " </li>",
  94. "{% endif %}",
  95. "",
  96. "{% if tags.material %}",
  97. " <li class='hasSymbol'>",
  98. " <img data-src=\"maki:warehouse\">",
  99. " <span class='key'>{{ keyTrans('material') }}:</span>",
  100. " <span class='value'>{{ tagTransList('material', tags.material) }}</span>",
  101. " </li>",
  102. "{% endif %}",
  103. "",
  104. "</ul>"
  105. ],
  106. "markerSign": "{{ attribute(const, key ~ '=' ~ value)|raw }}"
  107. },
  108. "const": {
  109. "amenity=arts_centre": "🎨",
  110. "amenity=cinema": "🎦",
  111. "amenity=clock": "<i class=\"fas fa-clock\"></i>",
  112. "amenity=community_centre": "<i class=\"fas fa-users\" aria-hidden=\"true\"></i>",
  113. "amenity=fountain": "⛲",
  114. "amenity=studio": "<i class=\"fas fa-microphone\"></i>",
  115. "amenity=theatre": "🎭",
  116. "tourism=artwork": "🎨 ",
  117. "tourism=gallery": "🖼",
  118. "tourism=museum": "🏛 ",
  119. "tourism=theme_park": "<img data-src='maki:amusement-park'>",
  120. "shop=art": "<i class=\"fa fa-shopping-cart\"></i>"
  121. },
  122. "info": [
  123. "<table>",
  124. "{% for value, sign in const %}",
  125. " <tr>",
  126. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ sign|raw }}</div></td>",
  127. " <td>{{ tagTrans(value|split('=')[0], value|split('=')[1]) }}</td>",
  128. " </tr>",
  129. "{% endfor %}",
  130. "</table>"
  131. ],
  132. "filter": {
  133. "type": {
  134. "name": "{{ trans('filter:type') }}",
  135. "show_default": "true",
  136. "query": "nwr[{{ value }}]",
  137. "type": "select",
  138. "values": "{% for k, v in const %}<option value=\"{{ k }}\">{{ trans('tag:' ~ k) }}</option>{% endfor %}<option value=\"other\" query=\"nwr[amenity=fountain]\">{{ trans('other') }}</option>",
  139. "valueName": "{{ trans('tag:' ~ value) }}"
  140. }
  141. }
  142. }