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

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 ♦
36.9k71370866
accept rate: 16%

... 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:

×305
×252
×84
×76
×19

question asked: 05 Nov '14, 16:22

question was seen: 15,882 times

last updated: 05 Nov '14, 17:25

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