http://geoffboeing.com/2016/11/osmnx-python-street-networks/
Check out the journal article about OSMnx.
OSMnx is a Python package for downloading administrative boundary shapes and street networks from OpenStreetMap. It allows you to easily construct, project, visualize, and analyze complex street networks in Python with NetworkX. You can get a city’s or neighborhood’s walking, driving, or biking network with a single line of Python code. Then you can simply visualize cul-de-sacs or one-way streets, plot shortest-path routes, or calculate stats like intersection density, average node connectivity, or betweenness centrality. You can download/cite the paper here.
In a single line of code, OSMnx lets you download, construct, and visualize the street network for, say, Modena Italy:
1
2
| import osmnx as ox ox.plot_graph(ox.graph_from_place( 'Modena, Italy' )) |
Comments
Post a Comment