From 973f5b8b61eb5ce7b0f024759dc380ee14c4feb9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= <skunk@xover.mud.at>
Date: Sun, 11 Aug 2019 20:39:00 +0200
Subject: [PATCH] Hiking/Cycling/MTB route relations: accept multi-value
 route=* tag

---
 cycle_routes.json  | 8 ++++----
 hiking_routes.json | 8 ++++----
 mtb-routes.json    | 2 +-
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/cycle_routes.json b/cycle_routes.json
index 2cb57ed..a3c5ceb 100644
--- a/cycle_routes.json
+++ b/cycle_routes.json
@@ -9,10 +9,10 @@
         "pt-br": "Ciclorrotas"
     },
     "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]"
+        "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(|;.*)\"]"
     },
     "members": true,
     "feature": {
diff --git a/hiking_routes.json b/hiking_routes.json
index 3bf40d9..53ce1e5 100644
--- a/hiking_routes.json
+++ b/hiking_routes.json
@@ -9,10 +9,10 @@
         "pt-br": "Rotas de caminhada"
     },
     "query": {
-        "10": "relation[type=route][route=hiking][network~\"^(iwn)$\"]",
-        "11": "relation[type=route][route=hiking][network~\"^(iwn|nwn)$\"]",
-        "12": "relation[type=route][route=hiking][network~\"^(iwn|nwn|rwn)$\"]",
-        "14": "relation[type=route][route=hiking]"
+        "10": "relation[type=route][route~\"(|.*;)hiking(|;.*)\"][network~\"^(iwn)$\"]",
+        "11": "relation[type=route][route~\"(|.*;)hiking(|;.*)\"][network~\"^(iwn|nwn)$\"]",
+        "12": "relation[type=route][route~\"(|.*;)hiking(|;.*)\"][network~\"^(iwn|nwn|rwn)$\"]",
+        "14": "relation[type=route][route~\"(|.*;)hiking(|;.*)\"]"
     },
     "members": true,
     "feature": {
diff --git a/mtb-routes.json b/mtb-routes.json
index ffc2670..b793061 100644
--- a/mtb-routes.json
+++ b/mtb-routes.json
@@ -7,7 +7,7 @@
         "pt-br": "Rotas de mountain bike"
     },
     "query": {
-        "13": "relation[type=route][route=mtb]"
+        "13": "relation[type=route][route~\"(|.*;)mtb(|;.*)\"]"
     },
     "members": true,
     "feature": {