Python Script to Read OpenStreetMap XML into a NetworkX Graph and rtree Index
This script is based upon this Gist by GitHub user rajanski
...which is a modification of this Gist by GitHub user aflaxman
...which is based on osm.py from brianw's osmgeocode
...which is based on osm.py from Graphserver and is copyright (c) 2007, Brandon Martin-Anderson under the BSD License.