Version 1 (modified by 6 years ago) ( diff ) | ,
---|
Kinda proof of concept in Overpass Turbo
Thanx to freeExec for helping with code. https://overpass-turbo.eu/s/w6c
[out:xml][timeout:25][bbox:{{bbox}}]; node[railway=subway_entrance]; foreach( rel(bn)->.r; out skel; convert node ::id = id(), ref = t[ref], colour = t[colour], label = "Выход № " + t[ref] + " со станций: " + r.set(t[name]); out; ); {{style: node { text: label; } }}
code
meta { title: "Station names on subway entrances"; version: "0.1.4_2018-10-15"; description: "Shows station names on subway entrances via stop_area relation"; author: "Alexander-II"; link: "https://wiki.openstreetmap.org/wiki/Tag:public_transport%3Dstop_area"; } meta[lang=ru] { title: "Названия станций на выходах метро"; description: "Показывает названия станций метро на выходах из метро"; link: "https://wiki.openstreetmap.org/wiki/Tag:public_transport%3Dstop_area"; } relation[type=public_transport][public_transport=stop_area][name] > node::subway_entrance_label { station_name: parent_tags(name); /* this list won't contain more than one item until https://josm.openstreetmap.de/ticket/7151 is unresolved */ set .has_station_name; } node[railway=subway_entrance].has_station_name::subway_entrance_label { text: concat("Выход № ", tag(ref), " со станций: " ,join_list(", ", prop(station_name))); /* font-size: 12; TODO maybe it makes sense to put text size in settings */ }
Styles_RU-SubwayEntranceLabeling-style.mapcss, Styles_RU-SubwayEntranceLabeling.zip
Note:
See TracWiki
for help on using the wiki.