Skip to content

Commit

Permalink
do not ask for cycleways on residential roads, but do ask in other ro…
Browse files Browse the repository at this point in the history
…ads with speed limits as low as 30km/h (#1013)
  • Loading branch information
westnordost committed Apr 22, 2018
1 parent 0445207 commit 52edf79
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,13 @@ private static String getOverpassQuery(BoundingBox bbox)
{
int d = MIN_DIST_TO_CYCLEWAYS;
return OverpassQLUtil.getGlobalOverpassBBox(bbox) +
"way[highway ~ \"^(primary|secondary|tertiary|unclassified|residential)$\"]" +
"way[highway ~ \"^(primary|secondary|tertiary|unclassified)$\"]" +
"[area != yes]" +
// only without cycleway tags
"[!cycleway][!\"cycleway:left\"][!\"cycleway:right\"][!\"cycleway:both\"]" +
"[!\"sidewalk:bicycle\"][!\"sidewalk:both:bicycle\"][!\"sidewalk:left:bicycle\"][!\"sidewalk:right:bicycle\"]" +
// not any with low speed limit because they not very likely to have cycleway infrastructure
"[maxspeed !~ \"^(30|25|20|15|10|8|7|6|5|20 mph|15 mph|10 mph|5 mph|walk)$\"]" +
"[maxspeed !~ \"^(20|15|10|8|7|6|5|10 mph|5 mph|walk)$\"]" +
// not any unpaved because of the same reason
"[surface !~ \"^("+ TextUtils.join("|", OsmTaggings.ANYTHING_UNPAVED)+")$\"]" +
// not any explicitly tagged as no bicycles
Expand Down

0 comments on commit 52edf79

Please sign in to comment.