# Open Source Routing Machine (OSRM)

> High performance routing engine for OpenStreetMap data

Source: https://talira.ai/catalog/open-source-routing-machine-osrm-xnyb2y7q
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Infrastructure, Library
- Categories: [location / routing / engines](https://talira.ai/categories/location/routing/engines)
- Licence: BSD-2-Clause[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Self-hostable: yes[^2]
- API: yes[^2]
- Backed by: [Project OSRM](https://talira.ai/orgs/project-osrm.md)

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.

## Links

- Website: https://project-osrm.org/
- GitHub: https://github.com/Project-OSRM/osrm-backend
- Docs: https://project-osrm.org/

## 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

## Trust

Overall: 0.38 out of 1.
Signals: backing 0.30, extensibility 0.40.

- backed by Project OSRM

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Valhalla](https://talira.ai/catalog/valhalla-w2dwe1jk.md): Open source routing engine for OpenStreetMap
- [GraphHopper](https://talira.ai/catalog/graphhopper-awk85whp.md): Open source routing engine for OpenStreetMap, and a hosted Directions API

## Sources

[^1]: https://github.com/Project-OSRM/osrm-backend/blob/master/LICENSE.TXT (checked 23 Nov 2026)
[^2]: https://github.com/Project-OSRM/osrm-backend (checked 23 Nov 2026)
