First, I'm using the BasicOSMParser by Panier Avide to obtain the info in Java. After that, I followed this solution to get all the nodes. I also did some additional testing for triple intersections and unnamed stuff such as roundabouts. Now, I need to obtain adjacent/precedent intersections, to sort of make a graph of how the intersections connect. Is this possible? After digging, I found this question from 2014, but it does not have answers. How can I make this graph (not necessarily a graph chart, but the precedence relations) or obtaining/linking intersections? |
I also just found this tool: http://osm-traffic.com/index.html It provides information on top of OSM, and can generate the graph in JSON format directly. |