OSRM vs Valhalla

A side-by-side comparison of two self-hosted maps & gis options — licensing, setup difficulty, resource needs, and what each one replaces.

Not the right match-up?
FeatureOSRMValhalla
CategoryMaps & GISMaps & GIS
LicenseBSD-2-ClauseMIT
LanguageC++C++
Setup difficultyHardHard
Min. RAM8,192 MB8,192 MB
Deploymentdocker, bare-metaldocker, bare-metal
GitHub stars★ 7,955★ 6,050
First released20122015
ReplacesGoogle Directions APIGoogle Directions API

Why pick each one

Choose OSRM if…

  • Released under the BSD-2-Clause license
  • First-class Docker support for quick deployment
  • Mature project with 8k GitHub stars
  • Written in C++
OSRM details

Choose Valhalla if…

  • Released under the MIT license
  • First-class Docker support for quick deployment
  • Mature project with 6k GitHub stars
  • Written in C++
Valhalla details

Frequently asked questions

Is OSRM or Valhalla better?

Neither is universally better. OSRM has the larger community; both share a hard setup difficulty, so the decision comes down to features and licensing.

Are OSRM and Valhalla free and open-source?

Yes. OSRM is licensed under BSD-2-Clause and Valhalla under MIT. Both can be self-hosted at no software cost.

Can I run OSRM and Valhalla with Docker?

OSRM: yes. Valhalla: yes.

Related comparisons