diff --git a/cycle_routes.json b/cycle_routes.json index 581ed13c5..2a1da864e 100644 --- a/cycle_routes.json +++ b/cycle_routes.json @@ -13,12 +13,62 @@ "12": "relation[type=route][route=bicycle][network~'^(icn|ncn|rcn)$']", "15": "relation[type=route][route=bicycle]" }, + "members": true, "feature": { - "priority": "{% if tags.network=='icn' %}0{% elseif tags.network=='ncn' %}1{% elseif tags.network=='rcn' %}2{% else %}3{% endif %}", + "priority": "{{ {icn:0,ncn:1,rcn:2,lcn:3}[tags.network] }}", + "description": "{{ tagTrans('network', tags.network) }}", + "styles": "" + }, + "memberFeature": { + "pre": [ + "{% set priority = 4 %}", + "{% set network = '' %}", + "{% set refs = [] %}", + "", + "{% for master in masters %}", + " {% set _p = {icn:0,ncn:1,rcn:2,lcn:3}[master.tags.network] %}", + " {% if _p < priority %}", + " {% set priority = _p %}", + " {% set network = master.tags.network %}", + " {% endif %}", + " {% if master.tags.ref %}", + " {% set refs = refs|merge([ master.tags.ref ]) %}", + " {% endif %}", + "{% endfor %}" + ], + "title": "", + "body": [ + "