https://github.com/johnyf/openstreetmap
Interface to OpenStreetMap (load maps, extract road connectivity, plot road network & find shortest path)
https://github.com/johnyf/openstreetmap
matlab openstreetmap plot road-network
Last synced: about 1 month ago
JSON representation
Interface to OpenStreetMap (load maps, extract road connectivity, plot road network & find shortest path)
- Host: GitHub
- URL: https://github.com/johnyf/openstreetmap
- Owner: johnyf
- License: bsd-2-clause
- Created: 2013-08-21T04:02:36.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2021-08-04T00:55:56.000Z (over 3 years ago)
- Last Synced: 2025-02-27T21:48:23.971Z (about 2 months ago)
- Topics: matlab, openstreetmap, plot, road-network
- Language: MATLAB
- Homepage: http://www.mathworks.com/matlabcentral/fileexchange/35819-openstreetmap-functions
- Size: 43 KB
- Stars: 96
- Watchers: 10
- Forks: 46
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Summary
-------
Load map, extract connectivity, plot road network & find shortest paths from OpenStreetMap `XML` file.Description
-----------
This software package includes functions for working with OpenStreetMap XML Data files (extension `.osm`), as downloaded from [here](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.
Download
--------
[Distribution zip](http://www.mathworks.com/matlabcentral/fileexchange/35819-openstreetmap-functions?download=true) from the File Exchange.
Includes dependencies.Documentation
-------------
Included in `PDF` format in the [distribution zip](http://www.mathworks.com/matlabcentral/fileexchange/35819-openstreetmap-functions?download=true).Dependencies
------------
- [xml2struct](http://www.mathworks.com/matlabcentral/fileexchange/28518-xml2struct)
- [gaimc: graph algorithms](http://www.mathworks.com/matlabcentral/fileexchange/24134-gaimc-graph-algorithms-in-matlab-code)
- [Lat/Lon aspect ratio](http://www.mathworks.com/matlabcentral/fileexchange/32462-correctly-proportion-a-latlon-plot)
- [plot 2/3d point(s)](http://www.mathworks.com/matlabcentral/fileexchange/34731-plot-23d-points)License
-------
This package is licensed under the 2-clause BSD license.
The authors of dependencies are included to enable their inclusion for distribution here.