Hello,
I need to find all the bicycle-related infras in a given city.
I know the objects live in the OSM database, but the following query returns nothing:
[out:json][timeout:25];
//Mycity = relation 123
rel(123);map_to_area -> .searchArea;
(
way["highway"="cycleway"][~"(cycleway|cycleway:left|cycleway:right)"~"(lane|track)"] (area.searchArea);
);
out geom;
Can you spot what’s wrong with this query?
Thank you.
–
Edit : As a work-around, this works, but I’d still be curious to understand why the original query failed:
[out:json][timeout:25];
rel(123);map_to_area -> .searchArea;
(
way["highway"="cycleway"](area.searchArea);
way[~"(cycleway|cycleway:left|cycleway:right)"~"(lane|track)"] (area.searchArea);
);
out geom;