I would like to extract roads which are missing bike lanes so that I can map them with Photo Mapping software. With my query below, I am able to fetch roads which are missing the cycleway tag. However, it is still returning roads which have the "cycleway:both" supplementary detail such as "cycleway:both=no". How can I fix my query to exclude such ways?
[out:json][timeout:250];
// gather results
(
way["highway"="primary"]["cycleway"!~".*"]({{bbox}})(if: length() > 20);
way["highway"="motorway"]["cycleway"!~".*"]({{bbox}})(if: length() > 20);
way["highway"="trunk"]["cycleway"!~".*"]({{bbox}})(if: length() > 20);
way["highway"="secondary"]["cycleway"!~".*"]({{bbox}})(if: length() > 20);
way["highway"="tertiary"]["cycleway"!~".*"]({{bbox}})(if: length() > 20);
way["highway"="residential"]["cycleway"!~".*"]({{bbox}})(if: length() > 20);
way["highway"="road"]["cycleway"!~".*"]({{bbox}})(if: length() > 20);
);
// print results
out body;
>;
out skel qt;
As a corollary, it is making me question whether map edits containing "cycleway:both" should also have "cycleway=yes" since the former is not as widely used.
cycleway:left=*
andcycleway:right=*
tags. For example withcycleway:left=lane
+cycleway:right=track
a cycleway is present for both directions whereascycleway:left=lane
+cycleway:right=no
specifies that only one direction has a cycleway.