From 89eb9453948f89f737748050ad8d3d8b5bc3687f Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Mon, 28 May 2018 20:43:58 +0200 Subject: [PATCH] smarter filtering out roads with separately mapped cycleways fixes #1084 --- .../streetcomplete/quests/bikeway/AddCycleway.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/de/westnordost/streetcomplete/quests/bikeway/AddCycleway.java b/app/src/main/java/de/westnordost/streetcomplete/quests/bikeway/AddCycleway.java index dfe3b1c92c..ebe12ce1a3 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/quests/bikeway/AddCycleway.java +++ b/app/src/main/java/de/westnordost/streetcomplete/quests/bikeway/AddCycleway.java @@ -198,6 +198,11 @@ private static String getOverpassQuery(BoundingBox bbox) // not any explicitly tagged as no bicycles "[bicycle != no]" + "[access !~ \"^private|no$\"]" + + // some roads may be father than MIN_DIST_TO_CYCLEWAYS from cycleways, + // not tagged cycleway=separate/sidepath but may have hint that there is + // a separately tagged cycleway + "[bicycle != use_sidepath][\"bicycle:backward\" != use_sidepath]" + + "[\"bicycle:forward\" != use_sidepath]" + " -> .streets;" + "(" + "way[highway=cycleway](around.streets: "+d+");" +