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.

104 lines
3.8 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. ")"
  34. ]
  35. },
  36. "feature": {
  37. "pre": [
  38. "{% if tags.amenity in [ 'arts_centre', 'cinema', 'community_centre', 'fountain', 'studio', 'theatre' ] %}",
  39. "{% set key = 'amenity' %}",
  40. "{% set value = tags.amenity %}",
  41. "{% elseif tags.tourism %}",
  42. "{% set key = 'tourism' %}",
  43. "{% set value = tags.tourism %}",
  44. "{% endif %}"
  45. ],
  46. "description": "{{ tagTrans(key, value) }}",
  47. "body": [
  48. "<ul>",
  49. "{% if tags.inscription %}",
  50. " <li class='hasSymbol'>",
  51. " <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>",
  52. " <span class='key'>{{ keyTrans('inscription') }}:</span>",
  53. " <span class='value'>{{ localizedTag(tags, 'inscription') }}</span>",
  54. " </li>",
  55. "{% elseif attribute(tags, 'inscription:url') %}",
  56. " <li class='hasSymbol'>",
  57. " <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>",
  58. " <span class='key'><a href=\"{{ attribute(tags, 'inscription:url') }}\">{{ keyTrans('inscription') }}</a></span>",
  59. " </li>",
  60. "{% endif %}",
  61. "",
  62. "{% if tags.artist_name %}",
  63. " <li class='hasSymbol'>",
  64. " <i class=\"fa fa-palette\" aria-hidden=\"true\"></i>",
  65. " <span class='key'>{{ keyTrans('artist_name') }}:</span>",
  66. " <span class='value'>{{ enumerate(tags.artist_name) }}</span>",
  67. " </li>",
  68. "{% endif %}",
  69. "",
  70. "{% if tags.material %}",
  71. " <li class='hasSymbol'>",
  72. " <img data-src=\"maki:warehouse\">",
  73. " <span class='key'>{{ keyTrans('material') }}:</span>",
  74. " <span class='value'>{{ tagTransList('material', tags.material) }}</span>",
  75. " </li>",
  76. "{% endif %}",
  77. "",
  78. "</ul>"
  79. ],
  80. "markerSign": "{{ attribute(const, key ~ '=' ~ value) }}"
  81. },
  82. "const": {
  83. "amenity=arts_centre": "🎨",
  84. "amenity=cinema": "🎦",
  85. "amenity=community_centre": "",
  86. "amenity=fountain": "⛲",
  87. "amenity=studio": "",
  88. "amenity=theatre": "🎭",
  89. "tourism=artwork": "🎨 ",
  90. "tourism=gallery": "🖼",
  91. "tourism=museum": "🏛 ",
  92. "tourism=theme_park": ""
  93. },
  94. "info": [
  95. "<table>",
  96. "{% for value, sign in const %}",
  97. " <tr>",
  98. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ sign }}</div></td>",
  99. " <td>{{ tagTrans(value|split('=')[0], value|split('=')[1]) }}</td>",
  100. " </tr>",
  101. "{% endfor %}",
  102. "</table>"
  103. ]
  104. }