Main categories of OpenStreetBrowser with public transport zoom level
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.

141 lines
4.5 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. "node[amenity~'^(college|university|library|school|kindergarten|language_school)$'];",
  33. "way[amenity~'^(college|university|library|school|kindergarten|language_school)$'];",
  34. "relation[amenity~'^(college|university|library|school|kindergarten|language_school)$'];",
  35. "nwr[office~\"^(educational_institution|research)$\"];",
  36. ")"
  37. ],
  38. "16": [
  39. "(",
  40. "node[amenity~'^(college|university|library|school|kindergarten|public_bookcase)$'];",
  41. "way[amenity~'^(college|university|library|school|kindergarten|public_bookcase)$'];",
  42. "relation[amenity~'^(college|university|library|school|kindergarten|public_bookcase)$'];",
  43. "nwr[office~\"^(educational_institution|research)$\"];",
  44. ")"
  45. ]
  46. },
  47. "feature": {
  48. "pre": [
  49. "{% if tags.office == 'educational_institution' or tags.office == 'research' %}",
  50. " {% set key = 'office' %}",
  51. " {% set value = tags.office %}",
  52. "{% else %}",
  53. " {% set key = 'amenity' %}",
  54. " {% set value = tags.amenity %}",
  55. "{% endif %}"
  56. ],
  57. "description": "{{ tagTrans(key, value) }}",
  58. "body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ tags.operator }}<br/>{% endif %}",
  59. "markerSign": [
  60. "{% set data = const[key ~ '=' ~ value] %}",
  61. "{% if data %}",
  62. "{{ data.sign|raw }}",
  63. "{% endif %}"
  64. ],
  65. "priority": [
  66. "{% set data = const[key ~ '=' ~ value] %}",
  67. "{% if data %}",
  68. "{{ data.priority }}",
  69. "{% endif %}"
  70. ]
  71. },
  72. "info": [
  73. "<table>",
  74. "{% for kv, data in const %}",
  75. "{% if data.zoom <= map.zoom %}",
  76. " <tr>",
  77. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  78. " <td>",
  79. " {{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}",
  80. " </td>",
  81. " </tr>",
  82. "{% endif %}",
  83. "{% endfor %}",
  84. "</table>"
  85. ],
  86. "const": {
  87. "amenity=university": {
  88. "priority": 0,
  89. "sign": "🎓",
  90. "zoom": 11
  91. },
  92. "amenity=college": {
  93. "priority": 1,
  94. "sign": "🎓",
  95. "zoom": 11
  96. },
  97. "amenity=library": {
  98. "priority": 2,
  99. "sign": "🕮",
  100. "zoom": 11
  101. },
  102. "amenity=school": {
  103. "priority": 3,
  104. "sign": "🏫",
  105. "zoom": 14
  106. },
  107. "amenity=language_school": {
  108. "priority": 3,
  109. "sign": "🏫",
  110. "zoom": 14
  111. },
  112. "amenity=kindergarten": {
  113. "priority": 4,
  114. "sign": "⛹",
  115. "zoom": 14
  116. },
  117. "amenity=public_bookcase": {
  118. "priority": 5,
  119. "sign": "📚",
  120. "zoom": 16
  121. },
  122. "office=educational_institution": {
  123. "priority": 3,
  124. "sign": "🏢",
  125. "zoom": 14
  126. },
  127. "office=research": {
  128. "priority": 3,
  129. "sign": "<i class='fas fa-vials'></i>",
  130. "zoom": 14
  131. }
  132. },
  133. "filter": {
  134. "type": {
  135. "name": "{{ trans('filter:type') }}",
  136. "show_default": "true",
  137. "type": "select",
  138. "values": "{% for k, v in const %}<option value=\"{{ k }}\" query=\"nwr[{{ k }}]\" minzoom=\"{{ v.zoom }}\">{{ tagTrans(k) }}</option>{% endfor %}"
  139. }
  140. }
  141. }