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.

135 lines
5.3 KiB

7 years ago
7 years ago
7 years ago
7 years ago
5 years ago
5 years ago
5 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[shop~\"^(art)$\"];",
  34. ")"
  35. ]
  36. },
  37. "feature": {
  38. "pre": [
  39. "{% if tags.amenity in [ 'arts_centre', 'cinema', 'community_centre', 'fountain', 'studio', 'theatre' ] %}",
  40. "{% set key = 'amenity' %}",
  41. "{% set value = tags.amenity %}",
  42. "{% elseif tags.tourism %}",
  43. "{% set key = 'tourism' %}",
  44. "{% set value = tags.tourism %}",
  45. "{% elseif tags.shop %}",
  46. "{% set key = 'shop' %}",
  47. "{% set value = tags.shop %}",
  48. "{% endif %}"
  49. ],
  50. "description": [
  51. "{% if key == 'shop' %}",
  52. " {{ keyTrans(key) }} ({{ tagTrans(key, value) }})",
  53. "{% else %}",
  54. " {{ tagTrans(key, value) }}",
  55. "{% endif %}",
  56. "",
  57. "{% if tags.tourism == 'museum' and tags.museum %}",
  58. "({{ tagTrans('museum', tags.museum) }})",
  59. "{% endif %}",
  60. "{% if tags.amenity == 'theatre' and attribute(tags, 'theatre:genre') %}",
  61. "({{ tagTrans('theatre:genre', attribute(tags, 'theatre:genre')) }})",
  62. "{% endif %}",
  63. "{% if tags.amenity == 'community_centre' and tags.community_centre %}",
  64. "({{ tagTrans('community_centre', tags.community_centre) }})",
  65. "{% endif %}"
  66. ],
  67. "body": [
  68. "<ul>",
  69. "{% if tags.inscription %}",
  70. " <li class='hasSymbol'>",
  71. " <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>",
  72. " <span class='key'>{{ keyTrans('inscription') }}:</span>",
  73. " <span class='value'>{{ localizedTag(tags, 'inscription') }}</span>",
  74. " </li>",
  75. "{% elseif attribute(tags, 'inscription:url') %}",
  76. " <li class='hasSymbol'>",
  77. " <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>",
  78. " <span class='key'><a href=\"{{ attribute(tags, 'inscription:url') }}\">{{ keyTrans('inscription') }}</a></span>",
  79. " </li>",
  80. "{% endif %}",
  81. "",
  82. "{% if tags.artist_name %}",
  83. " <li class='hasSymbol'>",
  84. " <i class=\"fa fa-palette\" aria-hidden=\"true\"></i>",
  85. " <span class='key'>{{ keyTrans('artist_name') }}:</span>",
  86. " <span class='value'>{{ enumerate(tags.artist_name) }}</span>",
  87. " </li>",
  88. "{% endif %}",
  89. "",
  90. "{% if tags.material %}",
  91. " <li class='hasSymbol'>",
  92. " <img data-src=\"maki:warehouse\">",
  93. " <span class='key'>{{ keyTrans('material') }}:</span>",
  94. " <span class='value'>{{ tagTransList('material', tags.material) }}</span>",
  95. " </li>",
  96. "{% endif %}",
  97. "",
  98. "</ul>"
  99. ],
  100. "markerSign": "{{ attribute(const, key ~ '=' ~ value)|raw }}"
  101. },
  102. "const": {
  103. "amenity=arts_centre": "🎨",
  104. "amenity=cinema": "🎦",
  105. "amenity=community_centre": "<i class=\"fas fa-users\" aria-hidden=\"true\"></i>",
  106. "amenity=fountain": "⛲",
  107. "amenity=studio": "<i class=\"fas fa-microphone\"></i>",
  108. "amenity=theatre": "🎭",
  109. "tourism=artwork": "🎨 ",
  110. "tourism=gallery": "🖼",
  111. "tourism=museum": "🏛 ",
  112. "tourism=theme_park": "<img data-src='maki:amusement-park'>",
  113. "shop=art": "<i class=\"fa fa-shopping-cart\"></i>"
  114. },
  115. "info": [
  116. "<table>",
  117. "{% for value, sign in const %}",
  118. " <tr>",
  119. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ sign|raw }}</div></td>",
  120. " <td>{{ tagTrans(value|split('=')[0], value|split('=')[1]) }}</td>",
  121. " </tr>",
  122. "{% endfor %}",
  123. "</table>"
  124. ],
  125. "filter": {
  126. "type": {
  127. "name": "{{ trans('filter:type') }}",
  128. "show_default": "true",
  129. "query": "nwr[{{ value }}]",
  130. "type": "select",
  131. "values": "{% for k, v in const %}<option value=\"{{ k }}\">{{ trans('tag:' ~ k) }}</option>{% endfor %}<option value=\"other\" query=\"nwr[amenity=fountain]\">{{ trans('other') }}</option>",
  132. "valueName": "{{ trans('tag:' ~ value) }}"
  133. }
  134. }
  135. }