Skip to content
Speaking of GIS

Open routing

Open Routing Engines Compared

Four mature engines route over OpenStreetMap data. They differ less in route quality than in what else they compute and how much they let you change per request.

EngineLanguageLicenceIsochronesChange costing
OSRMC++BSD-2-ClauseNoFixed per build (Lua profile)
ValhallaC++MITYes (time or distance)Per request (costing options)
GraphHopperJavaApache-2.0YesPer request with custom models (not in pure CH mode)
openrouteserviceJava (GraphHopper-based)GPL-3.0YesProfiles plus request options

Licences from each project’s repository, checked 24 November 2026. Feature sets change between releases; check the docs of the version you deploy.

How to choose

  • Huge volumes of car routes or matrices, one profile: OSRM. Preprocessing makes each query very cheap, at the cost of rebuilding to change weights.
  • Isochrones, several modes, per-request preferences: Valhalla. Its tiled graph also keeps memory use manageable for large regions.
  • A JVM shop, or flexible custom weighting: GraphHopper, whose custom models let you change speed and priority rules per request.
  • A hosted API with open-source roots: openrouteservice, run by HeiGIT, with a free plan and a self-hostable engine.

Public instances are for trying, not for production

The OSRM demo server and the FOSSGIS Valhalla server are run by volunteers. The OSRM demo asks for reasonable, non-commercial use at no more than one request per second. The FOSSGIS terms require an identifying User-Agent, limit scripts to one connection and rule out use as a substantial part of a commercial product. Build on your own instance or a paid host.

For our measurements of these public servers, see Benchmarks. For what an isochrone is and how Valhalla computes one, read Valhalla isochrones vs radius circles; for a full product architecture, the drive-time maps guide.

Data and attribution

All four engines build from OpenStreetMap extracts, such as the regional files from Geofabrik. Routes and areas derived from OSM data need the attribution “© OpenStreetMap contributors”, and a derived database you distribute falls under the ODbL’s share-alike terms; see the OSMF attribution guidelines.