Alternatives to OSRM
A C++ routing engine that computes shortest paths on OpenStreetMap road networks on your own server. The listings below can replace it for an important use case. Each note says what changes if you switch.
The original
OSRM
A C++ routing engine that computes shortest paths on OpenStreetMap road networks on your own server.
Replacements
Listings that take over the same core job as OSRM.
Valhalla
An open-source routing engine for OpenStreetMap data that you run on your own server.
Valhalla is a self-hosted OpenStreetMap engine that adds multi-modal routing, isochrones and dynamic per-request costing, requiring routing tiles to be built first.
GraphHopper
An OpenStreetMap routing engine and hosted Directions API with route optimization for many vehicle types.
GraphHopper offers a self-hostable OpenStreetMap routing engine plus a hosted API with custom vehicle profiles, with route optimization in paid plans.
openrouteservice
An open-source routing, isochrone and geocoding service built on OpenStreetMap data, usable online or self-hosted.
openrouteservice bundles routing with isochrones, matrices and geocoding, and offers a free public API and browser client alongside self-hosting.
BRouter
An offline OpenStreetMap routing engine with configurable profiles, aimed mainly at bike routing.
BRouter is an offline OpenStreetMap routing engine focused on bikes, with configurable elevation-aware profiles and plugging into Android map apps.
Similar software
Related functionality, not a direct replacement.
Nominatim
An open-source geocoder that finds places by name or address and addresses by coordinates using OpenStreetMap.
Photon
An open-source search-as-you-type geocoder for OpenStreetMap data, built on OpenSearch.
OpenMapTiles
An open-source schema, map styles and tools for generating OpenStreetMap vector tiles to self-host.
Pelias
A modular open-source geocoder built on Elasticsearch that searches places worldwide using open data.
OpenTripPlanner
An open-source multimodal trip planning server that combines transit, walking, cycling and driving routes.
Headway
A self-hostable maps stack with search and routing, powered by OpenStreetMap data.