duckOSM reads an OpenStreetMap .osm.pbf file and builds the complete transport network of an area—from GIS layers
and turn-by-turn routing to multi-scale GMNS models, traffic simulations, and Graph Neural Networks. One Rust engine
runs it all: the command line, the Python SDK and the browser.
It processes areas tile by tile, keeping memory low and speeds fast even for an entire country. Fix the OSM data once on
a map: your fixes go into one YAML file and apply at build time, so every downstream table, network layer, and export
inherits the same corrected data.
Large areas, little memory
duckOSM builds an area tile by tile, so the build stays fast and the memory stays low, also for a whole country.
In your browser duckOSM Studio runs the same engine in a web page, with no install,
and gives the same rows.
Python SDK pip install duckosm, then import duckosm: build, route, match GPS traces and export from Python
(Python SDK).
The notebook manual
15 chapters, each one a Jupyter notebook on Monaco that opens in Colab
(notebook manual).
One id for each road direction edge_id = hash(osm_id, source, target) stays the same after a rebuild, so your data joins to the right edge
(how).
Fix the OSM data once
Edit roads, turns and buildings on a map: your fixes go into one YAML file and apply at build time
(Edit OSM data).
GMNS in DuckDB
The open standard (General Modeling Network Specification) in DuckDB: links, lanes, and turning movements for simulation and traffic assignment
(GMNS network).
Traffic simulation
SUMO and MATSim exports, and GMNS tables that DTALite reads; SUMO and MATSim can join the edges of a road into one (--merge)
(Exports).
What duckOSM makes
All outputs come from one .osm.pbf file, in five levels, and all take your OSM fixes. Each level keeps the edge_id of the routable network.