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.

139 lines
3.4 KiB

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