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.
|
|
type: overpass
name:
ast: Servicios educativos
ca: Serveis Educatius
cs: Vzdělávací služby
de: Bildungseinrichtungen
el: Υπηρεσίες Εκπαίδευσης
en: Educational Services
es: Servicios educativos
et: Haridusteenused
fr: Éducation
gl: Servizos educativos
hu: Oktatás
it: Servizi d'istruzione
ja: 教育サービス
nb: Utdanningstjenester
nl: Onderwijs
oc: Education
pl: Usługi edukacyjne
pt: Educação
pt-br: Educação
ro: Servicii educatie
ru: Образование
sr: Образовне услуге
tr: Eğitim Servisleri
uk: Освіта
query:
11: |-
(
nwr[amenity~'^(.*;|)(college|university|library)(;.*|)$'];
)
14: |-
(
nwr[amenity~'^(.*;|)(college|university|library|school|kindergarten|language_school|childcare)(;.*|)$'];
nwr[office~"^(.*;|)(educational_institution|research)(;.*|)$"];
)
16: |-
(
nwr[amenity~'^(.*;|)(college|university|library|school|kindergarten|language_school|public_bookcase|childcare)(;.*|)$'];
nwr[office~"^(.*;|)(educational_institution|research)(;.*|)$"];
)
feature:
pre: |-
{% set key = null %}
{% set value = null %}
{% if tags.office and 'educational_institution' in tags.office|split(';') %}
{% set key = 'office' %}
{% set value = 'educational_institution' %}
{% elseif tags.office and 'research' in tags.office|split(';') %}
{% set key = 'office' %}
{% set value = 'research' %}
{% else %}
{% for k, d in const %}
{% set kv = k|split('=') %}
{% if kv[0] == 'amenity' and kv[1] in tags.amenity|split(';') %}
{% set key = 'amenity' %}
{% set value = kv[1] %}
{% endif %}
{% endfor %}
{% endif %}
description: '{{ tagTransList(key, attribute(tags, key)) }}'
body: |
{% if tags.operator %}{{ keyTrans("operator") }}: {{ tags.operator }}<br/>{% endif %}
markerSign: |-
{% set data = const[key ~ '=' ~ value] %}
{% if data %}
{{ data.sign|raw }}
{% endif %}
priority: |-
{% set data = const[key ~ '=' ~ value] %}
{% if data %}
{{ data.priority }}
{% endif %}
info: |-
<table>
{% for kv, data in const %}
{% if data.zoom <= map.zoom %}
<tr>
<td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>
<td>
{{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}
</td>
</tr>
{% endif %}
{% endfor %}
</table>
const:
amenity=university:
priority: 0
sign: 🎓
zoom: 11
amenity=college:
priority: 1
sign: 🎓
zoom: 11
amenity=library:
priority: 2
sign: 🕮
zoom: 11
amenity=school:
priority: 3
sign: 🏫
zoom: 14
amenity=language_school:
priority: 3
sign: 🏫
zoom: 14
amenity=kindergarten:
priority: 4
sign: ⛹
zoom: 14
amenity=childcare:
priority: 4
sign: ⛹
zoom: 14
amenity=public_bookcase:
priority: 5
sign: 📚
zoom: 16
office=educational_institution:
priority: 3
sign: 🏢
zoom: 14
office=research:
priority: 3
sign: <i class='fas fa-vials'></i>
zoom: 14
filter:
type:
name: '{{ trans("filter:type") }}'
show_default: 'true'
type: select
values: |
{% for k, v in const %}
<option value="{{ k }}" query="nwr[{{ k|replace({ '=', '^' }) }}]" minzoom="{{ v.zoom }}">
{{ tagTrans(k) }}
</option>
{% endfor %}
|