From 3ad505471d503a2e4baefd10ec221606593e4cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Sat, 8 Jul 2017 22:12:33 +0200 Subject: [PATCH] Transportation directory; bicycle routes --- cycle_routes.json | 19 +++++++++++++++++++ index.json | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 cycle_routes.json diff --git a/cycle_routes.json b/cycle_routes.json new file mode 100644 index 000000000..f8be9f48c --- /dev/null +++ b/cycle_routes.json @@ -0,0 +1,19 @@ +{ + "type": "overpass", + "query": { + "6": "relation[type=route][route=bicycle][network~'^(icn)$']", + "9": "relation[type=route][route=bicycle][network~'^(icn|ncn)$']", + "12": "relation[type=route][route=bicycle][network~'^(icn|ncn|rcn)$']", + "15": "relation[type=route][route=bicycle]" + }, + "minZoom": 6, + "feature": { + "style": { + "color": "{% if tags.network=='icn' %}#ff0000{% elseif tags.network=='ncn' %}#ff007f{% elseif tags.network=='rcn' %}#7f00ff{% else %}#0000ff{% endif %}", + "weight": 4, + "opacity": 1.0 + }, + "priority": "{% if tags.network=='icn' %}0{% elseif tags.network=='ncn' %}1{% elseif tags.network=='rcn' %}2{% else %}3{% endif %}" + } +} + diff --git a/index.json b/index.json index 7b493df49..15cd1a82d 100644 --- a/index.json +++ b/index.json @@ -31,6 +31,39 @@ } ] }, + { + "id": "transport", + "type": "index", + "subCategories": [ + { + "id": "transport_walk", + "type": "index", + "subCategories": [ + ] + }, + { + "id": "transport_cycle", + "type": "index", + "subCategories": [ + { + "id": "cycle_routes" + } + ] + }, + { + "id": "transport_pt", + "type": "index", + "subCategories": [ + ] + }, + { + "id": "transport_car", + "type": "index", + "subCategories": [ + ] + } + ] + }, { "id": "places" }