NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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


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.

permanent link

answered 05 Dec '16, 09:30

scai's gravatar image

scai ♦
33.3k21309459
accept rate: 23%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×68
×60
×19

question asked: 05 Dec '16, 04:21

question was seen: 2,982 times

last updated: 05 Dec '16, 09:30

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum