OSMnx is a Python package for downloading, modeling, analyzing, and visualizing street networks and other geospatial features from OpenStreetMap.
The tool solves the problem of accessing and working with OpenStreetMap data by providing a high-level interface that abstracts away the complexity of querying the Overpass API and processing geospatial data. It lets you download street networks for walking, driving, or biking with a single line of code, then work with the resulting network graph using NetworkX for analysis and visualization. Beyond street networks, it handles urban amenities, building footprints, transit stops, elevation data, street orientations, and routing information.
OSMnx suits researchers, urban planners, and developers working on transportation analysis, urban studies, or any project requiring street network data. It is particularly valuable when you need to programmatically fetch and analyze networks at city or regional scales without manually constructing them. The tool integrates with the NetworkX ecosystem, making it natural for anyone already working with graph-based analysis in Python.
The maintainers respond to new issues and pull requests within a day. Work in the issue tracker centers on bug reports, clarifications about what constitutes a bug versus expected behavior, and enhancement requests.