My goal is to get a list of all optional routes in certain area. I want to use OSM for achieving this data Route means pair or intersections that it's possible to drive from the first intersection to the second.
In the case at the image:
The optional routes are:
- 1-2 , 1-4
- 2-1 , 2-3 , 2-5
- 3-2 , 3-6
- 4-1 , 4-5
- 5-4 , 5-2 , 5-6
- 6-5 , 6-3
So far I have tried this code in overpass-turbo site:
[bbox:{{bbox}}];
way[highway~"^(residential)$"]->.minor;
node(w.minor)(w.minor);
out;
The output is the intersections, but:
- List doesn't contain all the intersections
- I need the routes = connection of pairs of intersections