duckOSM¶
Turn OpenStreetMap into routable networks, GMNS models, and GIS layers. One Rust engine powered by DuckDB, for your computer and your browser.
duckOSM reads an .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. 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.
What duckOSM makes¶
All outputs come from one .osm.pbf file, in five levels, and all take your OSM fixes. Each output is checked against a reference tool (how).
Edges, edge_id, turnsGeoPackage · networkx 3GMNS networkGMNS DuckDBMacro, meso, micro
links, lanes, turnsGMNS · MATSim · SUMO 4HD mapHD map DuckDBLane shape in 3D (experimental)SimReady · Lanelet2 · OpenDRIVE
All outputs, by level: Export. duckOSM and the other tools, for each group of users: Compare.
Highlights¶
-
Routable networks
Driving, walking and cycling in one DuckDB file, with the graph of legal turns. Build a network
-
Fix the OSM data
Edit roads, buildings, nodes and turns on a map. Every output uses your fixes. Edit OSM data
-
In the browser too
The same Rust engine runs in a web page, with no install, and gives the same rows. Browser and native
-
Edge ids that stay
One id for each road and each direction, the same after a rebuild, a cut and an export. Stable edge ids
-
GMNS in DuckDB
The open standard (General Modeling Network Specification) for links, lanes, and turning movements. The universal bridge from OSM to simulation models and Graph Neural Networks. GMNS network
-
Traffic simulation
SUMO and MATSim exports, and GMNS tables that DTALite reads, with automated validation. Simplifies continuous roads for faster simulation while preserving stable
edge_ids. Exports -
GIS layers
GDAL's OSM layers and QuackOSM's table, the same rows, faster, also in the browser. duckOSM and GDAL
-
Any area, any size
A boundary, a place name, a box or an H3 cell. Countries build by map tiles, in little memory. Prepare an area
-
GPS traces on the roads
Map matching with an HMM or with GPS-DTW, then counts and speeds on each edge. duckosm.mobility
-
One Rust program
The command line
duckosm, a Python SDK and a Rust SDK, all from the same code. Python SDK
A tour¶
duckosm edit. Edit OSM data →
duckosm route-map: a route on the turn graph, with directions. Routing →
duckosm viz in 3D: the roads of all modes between the buildings, on the base map of the database. Draw a map →
duckosm elevation, or the step Ground height in Studio). Elevation →Use it¶
-
Command line
One program,
duckosm:build,quack,sumo,gmns,editand more, each with--help. -
Python SDK
pip install duckosm, thenimport duckosm: build, quack, route and export from Python, all in the Rust engine. -
Rust SDK
The crates
duckosm-core,duckosm-buildand others: the same engine in your own Rust program. -
Dashboards & Studio
duckOSM Studio in the browser, or
net.dashboard()in Python: live maps, road cards, and 3D layers. Save as offline HTML files that open anywhere without a server.
Map data © OpenStreetMap contributors (ODbL). Files from Geofabrik. Built on DuckDB. duckOSM is MIT-licensed.