Convert OpenStreetMap to OpenDRIVE
Turn any OpenStreetMap area into an editable road network and export it as OpenDRIVE. Metromake imports roads, lanes, one-way streets, roundabouts, signals and speed limits, and writes the real origin into the export as a geoReference.
How to convert OpenStreetMap to OpenDRIVE
Export an area from openstreetmap.org
Zoom to the area on openstreetmap.org, press Export and save the .osm file.
Open it in Metromake
File → Import → OpenStreetMap, or New map → OpenStreetMap in the start menu.
Edit the road network
Adjust cross-sections, junction controls and signs, sculpt the terrain. The map is georeferenced to its real origin.
Export OpenDRIVE
File → Export → OpenDRIVE (.xodr). The export carries a geoReference and the OpenStreetMap credit.
metromake --import-osm area.osm area.json
metromake --export area.json area.xodr
What comes across from OSM
- All drivable roads, split into separate roads wherever ways meet
- Lanes, one-way streets and sidewalks (from
lanes,onewayandsidewalk) - Roundabout rings, turned into roundabout junctions
- Signalised junctions
maxspeedas speed-limit signs- Georeference: the OpenDRIVE export carries the real origin
Tested on a real extract of central Amsterdam: imported, exported and run in esmini.
OpenStreetMap credit (ODbL)
Next: what the OpenDRIVE export contains, or build OpenSCENARIO scenarios on the imported roads.
Early access
Metromake 0.9.0 is in early access for macOS and Windows: download it, activate it with a free early-access key, and tell us what to improve. Academic use for research and teaching is available on request.