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

Get the road nodes for routing in osmdroid

0

I have a .osm file that contains the list of highways. How do i parse it so that it'll get the nodes so i can use it for my djikstra algorithm which computes the shortest path? I have followed the answer here. The problem is i don't know what command should i use in the osmfilter in step 2. I checked the Osmfilter wiki site and it does not tell me how to split the way into two edges. I'm lost on what to put the command so i can parse only the road nodes for routing purposes.

asked 05 Dec '16, 04:21

Marisannn's gravatar image

Marisannn
21234
accept rate: 0%

edited 05 Dec '16, 08:23


One Answer:

0

The described algorithm is completely independent from osmfilter. You have to implement it in your application. It describes the things you have to do while parsing an OSM file in order to construct a graph representation inside your application.

answered 05 Dec '16, 09:30

scai's gravatar image

scai ♦
33.3k21309459
accept rate: 23%

Source code available on GitHub .