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.

137 lines
4.1 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ast": "Servicios educativos",
  5. "cs": "Vzdělávací služby",
  6. "de": "Bildungseinrichtungen",
  7. "el": "Υπηρεσίες Εκπαίδευσης",
  8. "en": "Educational Services",
  9. "et": "Haridusteenused",
  10. "fr": "Éducation",
  11. "hu": "Oktatás",
  12. "it": "Istruzione",
  13. "ja": "教育サービス",
  14. "nl": "Onderwijs",
  15. "pl": "Edukacyjne",
  16. "pt": "Educação",
  17. "pt-br": "Educação",
  18. "ro": "Servicii educatie",
  19. "ru": "Образование",
  20. "uk": "Освіта"
  21. },
  22. "query": {
  23. "11": [
  24. "(",
  25. "node[amenity~'^(college|university|library)$'];",
  26. "way[amenity~'^(college|university|library)$'];",
  27. "relation[amenity~'^(college|university|library)$'];",
  28. ")"
  29. ],
  30. "14": [
  31. "(",
  32. "nwr[amenity~'^(college|university|library|school|kindergarten|language_school)$'];",
  33. "nwr[office~\"^(educational_institution|research)$\"];",
  34. ")"
  35. ],
  36. "16": [
  37. "(",
  38. "nwr[amenity~'^(college|university|library|school|kindergarten|language_school|public_bookcase)$'];",
  39. "nwr[office~\"^(educational_institution|research)$\"];",
  40. ")"
  41. ]
  42. },
  43. "feature": {
  44. "pre": [
  45. "{% if tags.office == 'educational_institution' or tags.office == 'research' %}",
  46. " {% set key = 'office' %}",
  47. " {% set value = tags.office %}",
  48. "{% else %}",
  49. " {% set key = 'amenity' %}",
  50. " {% set value = tags.amenity %}",
  51. "{% endif %}"
  52. ],
  53. "description": "{{ tagTrans(key, value) }}",
  54. "body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ tags.operator }}<br/>{% endif %}",
  55. "markerSign": [
  56. "{% set data = const[key ~ '=' ~ value] %}",
  57. "{% if data %}",
  58. "{{ data.sign|raw }}",
  59. "{% endif %}"
  60. ],
  61. "priority": [
  62. "{% set data = const[key ~ '=' ~ value] %}",
  63. "{% if data %}",
  64. "{{ data.priority }}",
  65. "{% endif %}"
  66. ]
  67. },
  68. "info": [
  69. "<table>",
  70. "{% for kv, data in const %}",
  71. "{% if data.zoom <= map.zoom %}",
  72. " <tr>",
  73. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  74. " <td>",
  75. " {{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}",
  76. " </td>",
  77. " </tr>",
  78. "{% endif %}",
  79. "{% endfor %}",
  80. "</table>"
  81. ],
  82. "const": {
  83. "amenity=university": {
  84. "priority": 0,
  85. "sign": "🎓",
  86. "zoom": 11
  87. },
  88. "amenity=college": {
  89. "priority": 1,
  90. "sign": "🎓",
  91. "zoom": 11
  92. },
  93. "amenity=library": {
  94. "priority": 2,
  95. "sign": "🕮",
  96. "zoom": 11
  97. },
  98. "amenity=school": {
  99. "priority": 3,
  100. "sign": "🏫",
  101. "zoom": 14
  102. },
  103. "amenity=language_school": {
  104. "priority": 3,
  105. "sign": "🏫",
  106. "zoom": 14
  107. },
  108. "amenity=kindergarten": {
  109. "priority": 4,
  110. "sign": "⛹",
  111. "zoom": 14
  112. },
  113. "amenity=public_bookcase": {
  114. "priority": 5,
  115. "sign": "📚",
  116. "zoom": 16
  117. },
  118. "office=educational_institution": {
  119. "priority": 3,
  120. "sign": "🏢",
  121. "zoom": 14
  122. },
  123. "office=research": {
  124. "priority": 3,
  125. "sign": "<i class='fas fa-vials'></i>",
  126. "zoom": 14
  127. }
  128. },
  129. "filter": {
  130. "type": {
  131. "name": "{{ trans('filter:type') }}",
  132. "show_default": "true",
  133. "type": "select",
  134. "values": "{% for k, v in const %}<option value=\"{{ k }}\" query=\"nwr[{{ k }}]\" minzoom=\"{{ v.zoom }}\">{{ tagTrans(k) }}</option>{% endfor %}"
  135. }
  136. }
  137. }