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.

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