Browse Source

car_routes: improve refs

- natsort refs
- remove duplicate refs
- split&trim refs from way
maxspeed
parent
commit
aba940bc6e
  1. 8
      car_routes.json

8
car_routes.json

@ -22,7 +22,9 @@
"{% set refs = [] %}",
"{% set color = '#d41d8c' %}",
"{% if tags.ref %}",
" {% set refs = refs|merge([ tags.ref ]) %}",
" {% for ref in tags.ref|split(';') %}",
" {% set refs = refs|merge([ ref|trim ]) %}",
" {% endfor %}",
"{% endif %}",
"",
"{% for master in masters %}",
@ -32,7 +34,9 @@
" {% if master.tags.ref %}",
" {% set refs = refs|merge([ master.tags.ref ]) %}",
" {% endif %}",
"{% endfor %}"
"{% endfor %}",
"",
"{% set refs = refs|unique|natsort({ insensitive: true }) %}"
],
"body": [
"<h4>Routes</h4>",

Loading…
Cancel
Save