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.

149 lines
4.5 KiB

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