This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Get way based on direction of travel

0

I have this simple query, assuming that we know which direction and road the user travelling (heading), I want to get only that side of the highway, if it's a two way road that should also be selected.

Picture example of what I'm looking for

{{geocodeArea:Hamburg}}->.searchArea;
way[name="Sülldorfer Landstraße"](area.searchArea);
out geom;

overpass-turbo query above

How do I achieve this? If this requires post processing that would also be a viable option.

Thank you!

asked 24 Sep '21, 21:32

this%20is%20jack's gravatar image

this is jack
11113
accept rate: 0%

Source code available on GitHub .