High performance routing engine for OpenStreetMap data
open sourceBSD-2-Clauseself-hostablefree
OSRM (Open Source Routing Machine) is a high performance routing engine written in C++ that runs on OpenStreetMap data. Its HTTP API (osrm-routed), C++ library and Node.js bindings offer Route (fastest route between coordinates), Table (duration and distance matrices between many points), Match (snap noisy GPS traces to roads), Trip (a travelling salesman tour), Nearest (snap coordinates to the street network) and Tile (vector tiles with routing metadata). You preprocess an OpenStreetMap extract with a Lua routing profile (car, bike, foot or your own) and run the server yourself, for example from its Docker images; a demo server and frontend show it in action.
Problems it solves
- self-host a routing API on OpenStreetMap data instead of paying for Google Directions
- compute a travel time matrix between many delivery addresses
- snap GPS traces to the road network
- plan an efficient route through many stops
- route bicycles or pedestrians with a custom profile
Features
- Route, Table, Match, Trip, Nearest and Tile services
- HTTP API, C++ library and Node.js bindings
- Lua routing profiles: car, bike, foot or custom
- Docker images
- contraction hierarchies and multi-level Dijkstra
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Has official SDKs | plan not known |
Alternatives
The same job
These do what Open Source Routing Machine (OSRM) does.
- Valhalla Open source routing engine for OpenStreetMap
- GraphHopper Open source routing engine for OpenStreetMap, and a hosted Directions API
