Metromake / OpenStreetMap to OpenDRIVE
OSM → xodr

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, so a real street layout becomes a simulator map in one step.

Steps

How to convert OpenStreetMap to OpenDRIVE

  1. Export an area from openstreetmap.org

    Zoom to the area on openstreetmap.org, press Export and save the .osm file.

  2. Open it in Metromake

    File → Import → OpenStreetMap, or New map → OpenStreetMap in the start menu.

  3. Edit the road network

    Adjust cross-sections, junction controls and signs, sculpt the terrain. The map is georeferenced to its real origin.

  4. 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 is imported

What comes across from OSM

  • All drivable roads, split into separate roads wherever ways meet
  • Lanes, one-way streets and sidewalks (from lanes, oneway and sidewalk)
  • Roundabout rings, turned into roundabout junctions
  • Signalised junctions
  • maxspeed as 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.

ineditoutOpenStreetMap.osmOpenDRIVE.xodrHeightmap.png / .r16Metromake maplanes, junctions,signs, terrain, waterplain JSONOpenDRIVE 1.6.xodrOpenSCENARIO 1.2.xoscglTF 2.0.glb/.gltfOBJ.objHeightmap.png/.r16
Diagram OpenStreetMap, OpenDRIVE and heightmaps in; simulation and 3D formats out.
Licence

OpenStreetMap credit (ODbL)

Maps you build from OpenStreetMap data must credit OpenStreetMap contributors. Metromake keeps that credit with the map and writes it into exports. Data © OpenStreetMap contributors, ODbL.

Next: what the OpenDRIVE export contains, or build OpenSCENARIO scenarios on the imported roads.

Next step

Your own town, as an OpenDRIVE map.

Join the waiting list. Researchers and teaching groups: ask about academic use.