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.

95 lines
3.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. ")"
  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. "</ul>"
  70. ],
  71. "markerSign": "{{ attribute(const, key ~ '=' ~ value) }}"
  72. },
  73. "const": {
  74. "amenity=arts_centre": "🎨",
  75. "amenity=cinema": "🎦",
  76. "amenity=community_centre": "",
  77. "amenity=fountain": "⛲",
  78. "amenity=studio": "",
  79. "amenity=theatre": "🎭",
  80. "tourism=artwork": "🎨 ",
  81. "tourism=gallery": "🖼",
  82. "tourism=museum": "🏛 ",
  83. "tourism=theme_park": ""
  84. },
  85. "info": [
  86. "<table>",
  87. "{% for value, sign in const %}",
  88. " <tr>",
  89. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ sign }}</div></td>",
  90. " <td>{{ tagTrans(value|split('=')[0], value|split('=')[1]) }}</td>",
  91. " </tr>",
  92. "{% endfor %}",
  93. "</table>"
  94. ]
  95. }