2

How would you obtain a graph describing street interconnections and estimated driving times, and parse it using Python?

As an exercise, I'm trying to implement a basic A* planner to plot a route for navigating between two points on a map (i.e. TomTom, Garmin, Google Nav, etc). I could mock up some data, but I'd like to use real map data if possible.

I'm aware of Open Street Map, and while they allow exporting of small slices of their map into OSM XML data, I'm having trouble finding tools to easily parse this a form I can use. I've found imposm, but not much else. Can anyone recommend any other tools?

Cerin
  • 60,957
  • 96
  • 316
  • 522
  • I wouldn't try to do it in python - I'd get my data into PostGIS and use the pgrouting module. Also there are similar questions on gis.stackexchange.com – Spacedman Dec 24 '11 at 22:45
  • @Spacedman, I agree, PostGIS+pgrouting is the "proper" way to go if my end-goal is trip planning. But that's not really my end-goal. I want to parse it with Python as an exercise with building an A* based planner. – Cerin Dec 26 '11 at 03:48

0 Answers0