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? asked 28 Mar '18, 13:03 mel |
Perhaps How can I convert an OSM XML file into a graph representation? is helpful. answered 28 Mar '18, 13:53 Frederik Ramm ♦ |
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. answered 28 Mar '18, 13:55 mel |