This software package includes functions for working with OpenStreetMap XML Data files (extension .osm), as downloaded from http://www.openstreetmap.org, to:
1) Import and parse the XML data file and store the parsed data in a MATLAB structure. This data represents the graph of the transportation network.
2) Plot the MATLAB structure to get a visualization of the transportation network, its nodes and their labels.
3) Extract the adjacency matrix of the directed graph representing the network's connectivity (i.e., road intersections).
4) Find shortest routes between nodes within the network. Note that distance is measured as the number of transitions between intersection nodes, not over the map.
Development on GitHub:
https://github.com/johnyf/openstreetmap
and releases there and here.
An example map.osm is included to be used with usage_example.m |