MCPcopy Index your code
hub / github.com/gboeing/osmnx

github.com/gboeing/osmnx @v2.1.0 sqlite

repository ↗ · DeepWiki ↗ · release v2.1.0 ↗
184 symbols 674 edges 28 files 171 documented · 93% 1 cross-repo links
README

OSMnx

PyPI Version PyPI Downloads Documentation Status Build Status Coverage Status

OSMnx is a Python package to easily download, model, analyze, and visualize street networks and other geospatial features from OpenStreetMap. You can download and model walking, driving, or biking networks with a single line of code then analyze and visualize them. You can just as easily work with urban amenities/points of interest, building footprints, transit stops, elevation data, street orientations, speed/travel time, and routing.

Citation

If you use OSMnx in your work, please cite the paper:

Boeing, G. (2025). Modeling and Analyzing Urban Networks and Amenities with OSMnx. Geographical Analysis 57 (4), 567-577. doi:10.1111/gean.70009

Getting Started

First read the Getting Started guide for an introduction to the package and FAQ.

Then work through the Examples Gallery for step-by-step tutorials and sample code.

Installation

Follow the Installation guide to install OSMnx.

Support

If you have any trouble, consult the User Reference. The OSMnx repository is hosted on GitHub. If you have a "how-to" or usage question, please ask it on StackOverflow, as we reserve the repository's issue tracker for bug tracking and feature development.

License

OSMnx is open source and licensed under the MIT license. OpenStreetMap's open data license requires that derivative works provide proper attribution. Refer to the Getting Started guide for usage limitations.

Core symbols most depended-on inside this repo

_verify_mpl
called by 7
osmnx/plot.py
_report_validation
called by 4
osmnx/_validate.py
_save_and_show
called by 4
osmnx/plot.py
log
called by 3
osmnx/utils.py
project_gdf
called by 3
osmnx/projection.py
_get_fig_ax
called by 3
osmnx/plot.py
streets_per_node
called by 3
osmnx/stats.py
_stringify_nonnumeric_cols
called by 2
osmnx/io.py

Shape

Function 175
Class 6
Method 3

Languages

Python100%

Modules by API surface

tests/test_osmnx.py15 symbols
osmnx/plot.py14 symbols
osmnx/graph.py13 symbols
osmnx/stats.py12 symbols
osmnx/features.py12 symbols
osmnx/convert.py10 symbols
osmnx/_osm_xml.py10 symbols
osmnx/_http.py10 symbols
osmnx/io.py9 symbols
osmnx/utils_geo.py8 symbols
osmnx/simplification.py8 symbols
osmnx/routing.py8 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

geopandas1.0.1 · 1×
networkx2.5 · 1×
numpy1.24 · 1×
pandas1.5 · 1×
requests2.30 · 1×
shapely2.0 · 1×
sphinx9 · 1×

For agents

$ claude mcp add osmnx \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact