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

Obtaining adjacent intersections?

0

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's gravatar image

mel
16225
accept rate: 0%


2 Answers:

2

answered 28 Mar '18, 13:53

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

0

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's gravatar image

mel
16225
accept rate: 0%

Source code available on GitHub .