{ "type": "overpass", "name": { "ast": "Tresporte Públicu", "cs": "Veřejná doprava", "de": "Öffentlicher Verkehr", "el": "Δημόσιες Μεταφορές", "en": "Public Transportation", "et": "Ühistransport", "fr": "Transports publics", "hu": "Tömegközlekedés", "it": "Trasporti pubblici", "ja": "公共輸送", "nl": "Openbaar vervoer", "pl": "Transport Publiczny", "ro": "Transport public", "ru": "Общественный транспорт", "uk": "Громадський транспорт", "pt-br": "Transporte Público", "pt": "Transportes públicos" }, "name_routes": { "de": "Routen", "en": "Routes", "fr": "Lignes", "pt": "Rotas", "pt-br": "Rotas" }, "query": { "12": "relation[type=route][route~\"^(subway|monorail|ferry|train)$\"];", "14": "relation[type=route][route~\"^(subway|monorail|aerialway|bus|trolleybus|ferry|train|tram)$\"];" }, "members": true, "feature": { "styles": "", "title": [ "{% if tags.ref %}{{ tags.ref }} - {% endif %}", "", "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(trans('unnamed')) }}" ], "description": "{{ tagTrans('route', tags.route) }}", "body": [ "

Stops

", "{% for member in members %}", "{% if member.role|slice(-4) == 'stop' %}", "
{{ member.tags.name }}
", "{% endif %}", "{% endfor %}" ], "listMarkerSign": "{{ const[tags.route].sign|raw }}", "markerSymbol": null, "listMarkerSymbol": "{{ markerCircle({fillColor:const[tags.route].color})|raw }}" }, "memberFeature": { "listMarkerSymbol": "{{ markerCircle({})|raw }}", "style": { "color": [ "{% set master = masters[0] %}", "{{ const[master.tags.route].color|default('#ff0000') }}" ], "width": "{% if map.zoom>=15 %}5{% else %}3{% endif %}" }, "title": "{% if tags.public_transport == 'stop_position' %}{{ tags.name }}{% endif %}", "listStopsTitle": "{{ tags.name }}: {% for master in masters %}{{ master.tags.ref }} {% endfor %}", "body": [ "{% for master in masters %}", " '
{{ master.tags.name|default(master.tags.ref) }} ({{ master.id }})
", "{% endfor %}" ], "listRoutesExclude": "true", "listStopsExclude": "{% set isStop = 0 %}{% for master in masters %}{% if master.role|slice(-4) == 'stop' %}{% set isStop = 1 %}{% endif %}{% endfor %}{{ not isStop }}" }, "info": [ "", "{% for value, data in const %}", "{% if data.zoom <= map.zoom %}", " ", " ", " ", " ", "{% endif %}", "{% endfor %}", "
{{ markerCircle({fillColor:data.color})|raw }}
{{ data.sign|raw }}
{{ tagTrans('route', value) }}
" ], "const": { "train": { "sign": "", "zoom": 12, "color": "#202020" }, "subway": { "sign": "", "zoom": 12, "color": "#00007f" }, "monorail": { "sign": "M", "zoom": 12, "color": "#006f8f" }, "tram": { "sign": "", "zoom": 12, "color": "#7f007f" }, "bus": { "sign": "", "zoom": 12, "color": "#af0000" }, "trolleybus": { "sign": "", "zoom": 12, "color": "#af3f00" }, "aerialway": { "sign": "", "zoom": 12, "color": "#00aaaa" }, "ferry": { "sign": "", "zoom": 12, "color": "#007fff" } } }