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

Building a graph out of OSM XML

0

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


One Answer:

2

answered 05 Nov '14, 16:32

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

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

(05 Nov '14, 17:25) stephan75

Source code available on GitHub .