[SOLVED] [OverpassTurbo] Querying multiple keys/tags ?

Hello,

The following query is used to retrieve all one-way streets with a contra-flow bike lane. From what I’ve seen, it can be either “cycleway=opposite_lane” or more specifically “cycleway:left=opposite_lane”*.

It seems to work, but it’s a bit slow: Am I doing it wrong?


[out:json][timeout:25];
//123456 = city to search
rel(123456);map_to_area -> .searchArea;
(
  way["cycleway"="opposite_lane"]["oneway"="yes"](area.searchArea);
  way["cycleway:left"="opposite_lane"]["oneway"="yes"](area.searchArea);
);
out body;
>;
out skel qt;

Thank you.

  • or even “cycleway:right=opposite_lane” in countries where people drive on the wrong side of the road :wink:

This is simpler and works well AFAICT:


[out:json][timeout:25];

rel(123456);map_to_area -> .searchArea;
(
  way[~"(cycleway|cycleway:left)"~"(opposite|opposite_lane)"](area.searchArea);
);
out body;
>;
out skel qt;