# Open Source Routing Machine (OSRM)

Open Source Routing Machine (OSRM) is a high-performance C++ routing engine that computes shortest and fastest paths over OpenStreetMap road data and serves Nearest, Route, Table, Match, Trip, and Tile operations over. It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/8649/open-source-routing-machine-osrm

## Description

Open Source Routing Machine (OSRM) is a high-performance C++ routing engine that computes shortest and fastest paths over OpenStreetMap road data and serves Nearest, Route, Table, Match, Trip, and Tile operations over an HTTP API with C++ and Node.js bindings for developers and homelabbers needing fast self-hosted routing, distance matrices, and routing map tiles.

## Platform availability

Available on 1 of 10 platforms: Any server.

## Health score

68/100 (Good), based on 5 of 5 factors.
- Maintained: 100 (last commit 5 days ago)
- Popular: 78 (8,231 GitHub stars)
- Easy to install: 25 (1 install platform, install notes)
- Light to run: 10 (140 GB minimum RAM)
- Security check: 81 (no serious findings, CI, tests, OpenSSF Scorecard 5.2/10)

## Links

- Official website: http://project-osrm.org/
- GitHub: https://github.com/Project-OSRM/osrm-backend
- Documentation: http://project-osrm.org/docs/
- Docker Hub: https://hub.docker.com/r/osrm/osrm-backend/

## Common questions

### Do I need to prepare OpenStreetMap data before OSRM can serve routes?

Yes. The OpenStreetMap extract must be pre-processed before the engine can serve routes.

### Which OSRM pre-processing pipeline should I use?

Use Multi-Level Dijkstra by default. Contraction Hierarchies are still better for very large distance matrices.

### Can OSRM route for bicycles and pedestrians?

OSRM supports car, bicycle, and walk modes. The profiles can be customized.

### Can OSRM generate map tiles for routing frontends?

The Tile operation generates Mapbox Vector Tiles with internal routing metadata.

### Does OSRM account for turn restrictions?

Yes, OSRM includes proper turn restrictions.

---
Source: Our Local Host (https://ourlocalhost.com/app/8649/open-source-routing-machine-osrm), the self-hosted and open-source app directory.
