I'm a complete beginner in OSM. My final year project involves using OSM to create routing algorithms.

I've been playing with Osmosis to parse OSM XML data and I think I can work with it.

My question is if I need to build a graph out of OSM XML data, what would I need to parse?

I know I need the ways, but I'm not sure if I need to also parse the nodes and relations?

Keep in mind, this is a simple routing app for walking/running/cycling

Any helpful suggestions would be deeply appreciated!

asked 05 Nov '14, 16:22

echoalphapapa's gravatar image

echoalphapapa
417812
accept rate: 0%

edited 05 Nov '14, 16:23


You're not the first person to ask this ...

https://help.openstreetmap.org/questions/19213/osm-xml-into-graph

permanent link

answered 05 Nov '14, 16:32

SomeoneElse's gravatar image

SomeoneElse ♦
32.3k63336756
accept rate: 15%

... also have a look at all opensource solutions listed at http://wiki.openstreetmap.org/wiki/Routing

(05 Nov '14, 17:25) stephan75
Your answer
toggle preview

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:

×255
×219
×79
×62
×16

question asked: 05 Nov '14, 16:22

question was seen: 12,207 times

last updated: 05 Nov '14, 17:25

powered by OSQA