Metadata-Version: 2.4
Name: osm-to-opendrive
Version: 0.1.1
Summary: Converts OpenStreetMap extracts to OpenDRIVE.
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: networkx>=3.6.1
Requires-Dist: osmium>=4.3.2
Requires-Dist: shapely>=2.1.2
Requires-Dist: pyproj>=3.6.1
Requires-Dist: geopy>=2.4.1
Dynamic: license-file

# OSM to OpenDRIVE Converter

This project contains a python module that can converts [OpenStreetMap Data](https://www.openstreetmap.org/) into the [OpenDRIVE Format](https://www.asam.net/standards/detail/opendrive/).

## Usage

1. Clone Repository

2. Get OSM Region extract (download from https://www.openstreetmap.org/export or https://slice.openstreetmap.us/ or extract locally from planet dump)

4. run `uv run -m osm_to_opendrive <input_path.osm> <output_path.xodr>` (or manually create a virtual environment, install the dependencies and run with `python -m osm_to_opendrive`)

## Supports

- Road networks and roundabouts
- Lane types and lane widths
- Turn lanes and road arrows
- Intersections and junction connections
- Traffic lights and traffic signs
- Pedestrian crossings
- Bridges and elevation profiles (estimated from the OSM data)
- Geo-referencing and coordinates
