OSMnx downloads, models, analyzes, and visualizes street networks and geospatial features from OpenStreetMap for walking, driving, biking, and urban data work.
Overview
OSMnx is a Python package for working with street networks and other geospatial features sourced from OpenStreetMap. With a small amount of code you can download and model walking, driving, or biking networks, then analyze and visualize them.
Beyond networks, the package supports amenities and points of interest, building footprints, transit stops, elevation data, street orientations, travel speeds, and routing. Documentation guides cover installation, examples, and API reference.
Researchers and planners use OSMnx for urban network analysis; published work cites the package in geographical analysis literature. The MIT-licensed project requires proper OpenStreetMap attribution for derivative data.
Support questions are directed to Stack Overflow; the GitHub issue tracker is reserved for bugs and feature development.
Key features
- Download OSM street networks in one line
- Walking, driving, and biking network modes
- Routing and travel time analysis
- Building footprints and amenities
- Transit stops and elevation handling
- Network visualization helpers
- Street orientation statistics
Use cases
- Urban transportation network research
- Walkability and routing studies
- Mapping amenities near street graphs
- Teaching geospatial network analysis