OSMnx: A Python Package to Work with Graph-Theoretic OpenStreetMap Street Networks
Journal of Open Source Software, 2 (12), 2017, DOI:10.21105/joss.00215
4 Pages Posted: 16 Jun 2017
Date Written: March 17, 2017
OSMnx is a Python package for downloading OpenStreetMap street network data and then constructing it into NetworkX graphs. OSMnx can simplify and correct the network’s topology automatically to ensure that nodes actually exclusively represent intersections and dead-ends. Once the network is constructed and corrected, OSMnx can calculate shortest paths from one node to another. It can also calculate various network measures relevant to urban design and transportation as well as statistical physics, including intersection density, average intersection degree, edge density, average street segment length, circuity, clustering coefficients, betweenness centrality, closeness centrality, PageRank, and many more. Its built-in visualization capabilities leverage matplotlib to easily plot routes, one-way streets, dead-ends, high/low connectivity intersections, and figure-ground diagrams of street networks and urban form.
Keywords: python, openstreetmap, OSMnx, networks, network analysis, urban planning, urban design, urban form, urban morphology, GIS, geospatial
Suggested Citation: Suggested Citation