# OSRM

[BASE product page](<https://base.akulich.dev/en/library/osrm/>) · [Resource](<https://project-osrm.org/>)

ID: osrm · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

A high\-performance C\+\+ routing engine based on OpenStreetMap: HTTP APIs for routes, nearest points, and distance matrices in your own geospatial apps\.

## Type

Geospatial app component

## Entry type

tool

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/osrm/#resource-access>)

freemium

## [What you can use for free](<https://base.akulich.dev/en/library/osrm/#resource-access>)

The open source component used locally or self\-hosted for the stated workflow, within its license terms\.

## [Paid features and costs](<https://base.akulich.dev/en/library/osrm/#resource-access>)

Your own server, external APIs, and compute; managed cloud hosting, support, and additional commercial features if selected\.

## [Access and limitations](<https://base.akulich.dev/en/library/osrm/#resource-access>)

Code licensing and hosting costs are separate matters\. Check the conditions for the specific version and edition\.

## [Use cases](<https://base.akulich.dev/en/library/osrm/#resource-tasks>)

- Retrieve routes and distance matrices
- Prepare the graph and perform route and table requests for several coordinates

## Category IDs

- backend

## Subcategory IDs

- backend\.geospatial

## Tags

- OSRM
- Geospatial application component

## [Selection purpose](<https://base.akulich.dev/en/library/osrm/#resource-selection>)

Retrieve routes and distance matrices

## [Choose this when](<https://base.akulich.dev/en/library/osrm/#resource-selection>)

- Retrieve routes and distance matrices
- Prepare the graph and perform route and table requests for several coordinates

## [Requirements](<https://base.akulich.dev/en/library/osrm/#resource-selection>)

- The Docker quickstart requires OSM data and preprocessing: extract → partition → customize for MLD; CH uses contract and the corresponding routed algorithm\.

## [Limitations](<https://base.akulich.dev/en/library/osrm/#resource-selection>)

- Costs and limits of free use: Your own server, external APIs, and computing resources; managed cloud hosting, support, and additional commercial features if selected\.
- Terms of use: BSD\-2\-Clause
- Trip uses a greedy traveling\-salesperson heuristic\. Node/Python bindings provide read\-only access to the routing engine\.

## [Questions before use](<https://base.akulich.dev/en/library/osrm/#resource-faq>)

### What can you use for free in OSRM?

The openly available portion, used locally or self\-hosted for the stated use case within its license terms\.

### What additional costs might arise with OSRM?

Your own server, external APIs, and computing resources; managed cloud hosting, support, and additional commercial features if selected\.

### What terms of use matter for OSRM?

BSD\-2\-Clause

### How do you get started with OSRM?

Set up OSRM to test: OSM data for the required region and a travel profile\. Prepare the graph and perform route and table requests for several coordinates\. Integrate the checked version into your project; document its configuration, limitations, and recovery method\.

### What does OSRM handle besides a single route?

The HTTP API, C\+\+ interface, and Node bindings provide Nearest for snapping coordinates to the street network, Route for the fastest route, Table for time/distance matrices, Match for GPS traces, Trip for visit order, and Tile for routing metadata\. For a self\-hosted server, an OSM extract is first processed with a profile, then prepared through the chosen pipeline\.

## Sources for the selection guide

- [https://project\-osrm\.org/](<https://project-osrm.org/>)
- [https://raw\.githubusercontent\.com/Project\-OSRM/osrm\-backend/master/README\.md](<https://raw.githubusercontent.com/Project-OSRM/osrm-backend/master/README.md>)
- [https://github\.com/Project\-OSRM/osrm\-backend](<https://github.com/Project-OSRM/osrm-backend>)
- [https://raw\.githubusercontent\.com/Project\-OSRM/osrm\-backend/master/LICENSE\.TXT](<https://raw.githubusercontent.com/Project-OSRM/osrm-backend/master/LICENSE.TXT>)
- [https://raw\.githubusercontent\.com/Project\-OSRM/osrm\-backend/HEAD/README\.md](<https://raw.githubusercontent.com/Project-OSRM/osrm-backend/HEAD/README.md>)
- [https://raw\.githubusercontent\.com/Project\-OSRM/osrm\-backend/HEAD/LICENSE\.TXT](<https://raw.githubusercontent.com/Project-OSRM/osrm-backend/HEAD/LICENSE.TXT>)

## [Possible workflow](<https://base.akulich.dev/en/library/osrm/#resource-scenario>)

Retrieve routes and distance matrices

A possible workflow; this is not a report of hands-on testing.

## Before you start

- OSM data for the required region and a travel profile\.
- A test project and completion criteria for the task: Retrieve routes and distance matrices\.

## Steps

1. Set up OSRM to test: OSM data for the required region and a travel profile\.
2. Prepare the graph and perform route and table requests for several coordinates\.
3. Integrate the checked version into your project; document its configuration, limitations, and recovery method\.

## Check your result

- Coordinates belong to the chosen graph; check the matrix and route with reference pairs\.
- Check the result against a reference example; separately confirm the terms of any assets and external services used\.

## [License](<https://base.akulich.dev/en/library/osrm/#resource-license>)

BSD\-2\-Clause

## License explanations for the specified scope

### BSD2\-Clause — free use with notices

Use, modification, and distribution of source code and binaries are permitted\. Retain the copyright, conditions, and warranty disclaimer in source code; reproduce them in documentation or accompanying materials for a binary release\. This license does not determine a separate service's pricing or support\.

[License terms](<https://opensource.org/license/bsd-2-clause>)

## [Sources](<https://base.akulich.dev/en/library/osrm/#resource-sources>)

- [Official website](<https://project-osrm.org/>)
- [Project documentation](<https://raw.githubusercontent.com/Project-OSRM/osrm-backend/master/README.md>)
- [Source code](<https://github.com/Project-OSRM/osrm-backend>)
- [Current product terms](<https://raw.githubusercontent.com/Project-OSRM/osrm-backend/master/LICENSE.TXT>)
- [Official source](<https://raw.githubusercontent.com/Project-OSRM/osrm-backend/HEAD/README.md>)
- [Official source](<https://raw.githubusercontent.com/Project-OSRM/osrm-backend/HEAD/LICENSE.TXT>)

## Editorial review date

2026\-10\-06

## Editorial review scope

Purpose and published conditions were reviewed against primary sources on 06\.10\.2026\. The software was not installed, and quality and performance in a specific environment were not tested\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
