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.

119 lines
4.4 KiB

7 years ago
7 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. ],
  61. "body": [
  62. "<ul>",
  63. "{% if tags.inscription %}",
  64. " <li class='hasSymbol'>",
  65. " <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>",
  66. " <span class='key'>{{ keyTrans('inscription') }}:</span>",
  67. " <span class='value'>{{ localizedTag(tags, 'inscription') }}</span>",
  68. " </li>",
  69. "{% elseif attribute(tags, 'inscription:url') %}",
  70. " <li class='hasSymbol'>",
  71. " <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>",
  72. " <span class='key'><a href=\"{{ attribute(tags, 'inscription:url') }}\">{{ keyTrans('inscription') }}</a></span>",
  73. " </li>",
  74. "{% endif %}",
  75. "",
  76. "{% if tags.artist_name %}",
  77. " <li class='hasSymbol'>",
  78. " <i class=\"fa fa-palette\" aria-hidden=\"true\"></i>",
  79. " <span class='key'>{{ keyTrans('artist_name') }}:</span>",
  80. " <span class='value'>{{ enumerate(tags.artist_name) }}</span>",
  81. " </li>",
  82. "{% endif %}",
  83. "",
  84. "{% if tags.material %}",
  85. " <li class='hasSymbol'>",
  86. " <img data-src=\"maki:warehouse\">",
  87. " <span class='key'>{{ keyTrans('material') }}:</span>",
  88. " <span class='value'>{{ tagTransList('material', tags.material) }}</span>",
  89. " </li>",
  90. "{% endif %}",
  91. "",
  92. "</ul>"
  93. ],
  94. "markerSign": "{{ attribute(const, key ~ '=' ~ value)|raw }}"
  95. },
  96. "const": {
  97. "amenity=arts_centre": "🎨",
  98. "amenity=cinema": "🎦",
  99. "amenity=community_centre": "",
  100. "amenity=fountain": "⛲",
  101. "amenity=studio": "",
  102. "amenity=theatre": "🎭",
  103. "tourism=artwork": "🎨 ",
  104. "tourism=gallery": "🖼",
  105. "tourism=museum": "🏛 ",
  106. "tourism=theme_park": "",
  107. "shop=art": "<i class=\"fa fa-shopping-cart\"></i>"
  108. },
  109. "info": [
  110. "<table>",
  111. "{% for value, sign in const %}",
  112. " <tr>",
  113. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ sign|raw }}</div></td>",
  114. " <td>{{ tagTrans(value|split('=')[0], value|split('=')[1]) }}</td>",
  115. " </tr>",
  116. "{% endfor %}",
  117. "</table>"
  118. ]
  119. }