Skip to content

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.

duckOSM Studio: the Build card in the panel, and the road network of Monaco on the map
duckOSM Studio in the browser: choose an area, build its network, edit the OSM data and export.

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).

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

The Turn tab of Edit OSM data: a picked road and the roads that leave its junction
Edit OSM data: the turns at a junction, in the browser or with duckosm edit. Edit OSM data →
The quack page: the counts of the five GDAL layers of Monaco and a download button for each layer
The quack page: GDAL's five OSM layers or the QuackOSM table, made in the browser. Open the quack page →
The route planner: a walking route from Fontvieille to Larvotto on the map, with the directions
The route planner of duckosm route-map: a route on the turn graph, with directions. Routing →
The map of duckosm viz in 3D: the buildings of Monaco stand up around the port, with the roads between them
The map of duckosm viz in 3D: the roads of all modes between the buildings, on the base map of the database. Draw a map →
The lanes of one Monaco junction from the GMNS export: each lane at its width, with its turn arrows
GMNS lane-level geometry: each lane at its physical width with its turning movements. GMNS export →
Monaco in 3D on the ground of the area, with hillshade: the hill rises behind the port, and the roads climb it
Monaco in 3D on the ground of the area: the hill behind the port and the roads that climb it (duckosm elevation, or the step Ground height in Studio). Elevation →

Use it

  • Command line


    One program, duckosm: build, quack, sumo, gmns, edit and more, each with --help.

    Command line · Quick start

  • Python SDK


    pip install duckosm, then import duckosm: build, quack, route and export from Python, all in the Rust engine.

    Python SDK · Notebook manual · Quick start

  • Rust SDK


    The crates duckosm-core, duckosm-build and others: the same engine in your own Rust program.

    Rust SDK

  • 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.

    duckOSM Studio · Draw a map


Map data © OpenStreetMap contributors (ODbL). Files from Geofabrik. Built on DuckDB. duckOSM is MIT-licensed.