StackShareStackShare
Follow on
StackShare

Discover and share technology stacks from companies around the world.

Follow on

© 2025 StackShare. All rights reserved.

Product

  • Stacks
  • Tools
  • Feed

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  1. Stackups
  2. Utilities
  3. API Tools
  4. Mapping Apis
  5. OSRM vs Valhalla

OSRM vs Valhalla

OverviewComparisonAlternatives

Overview

Valhalla
Valhalla
Stacks14
Followers58
Votes3
OSRM
OSRM
Stacks34
Followers85
Votes0
GitHub Stars7.2K
Forks3.8K

OSRM vs Valhalla: What are the differences?

Introduction:

In the realm of routing options for web developers, there are two prominent choices to consider: OSRM and Valhalla. Both OSRM and Valhalla are open-source routing engines that provide efficient and accurate directions for various modes of transportation. However, they differ in several key aspects, which we will delve into in the sections below.

  1. Routing Algorithm: OSRM utilizes Contraction Hierarchies (CH) as its default routing algorithm. CH is an optimization technique that pre-processes the data to enable fast shortest path calculations. It achieves this by contracting less important nodes early, reducing the search space during routing. On the other hand, Valhalla offers multiple routing algorithms, including CH, but also provides options like Time-Distance Matrix (TDM), which optimizes many-to-many distances, and Bidirectional A-Star (Bidi-A*), which sacrifices preprocessing time for faster query times.

  2. Customizability and Modularity: OSRM focuses more on providing a routing engine that is ready to use out of the box and is relatively easier to integrate into existing systems. It offers a more streamlined experience but can lack flexibility for those seeking more customization options. In contrast, Valhalla emphasizes modularity and extensibility, allowing developers to cherry-pick the desired components, enabling customization and integration with various data sources.

  3. Data Storage and Format: OSRM typically requires pre-processing of the input data, creating a compressed graph representation that is stored and used during routing. This upfront preprocessing enables faster query times but necessitates additional storage space. In contrast, Valhalla is designed to operate on raw OpenStreetMap (OSM) data without requiring preprocessing. However, this may lead to slightly longer query times compared to OSRM, as computations are performed directly on the original data.

  4. Additional Features and APIs: OSRM provides a simplified, yet focused set of APIs centered around routing, including nearest queries, table queries, and match service for GPS traces. Valhalla, on the other hand, offers an extensive catalog of additional features, such as isochrone generation, time-aware routing, elevation data support, real-time traffic integration, and more. These additional features make Valhalla a more comprehensive solution, catering to a wider range of routing needs.

  5. Community and Documentation: OSRM has been actively developed since 2014 and boasts a large user community, making it relatively easier to find online resources and documentation. Valhalla, while gaining popularity, is a relatively newer project, and its user base and community are still growing. Consequently, finding comprehensive documentation and community support might be more challenging for Valhalla users, although efforts are being made to address this.

  6. Performance and Scalability: OSRM's focus on preprocessing allows it to offer excellent performance and scalability. Its CH algorithm shines in scenarios with static and relatively large datasets, where precomputing shortcuts helps reduce query times. However, Valhalla's flexible architecture enables its routing engine to leverage parallel processing and distributed computing, making it more suitable for scenarios with dynamic and rapidly changing data, such as real-time traffic updates.

In summary, OSRM and Valhalla differ in aspects such as routing algorithm, customizability and modularity, data storage and format, additional features and APIs, community and documentation, as well as performance and scalability. Developers can choose between them based on their specific requirements, with OSRM providing a streamlined and efficient out-of-the-box experience, while Valhalla offers greater flexibility and extensibility.

Share your Stack

Help developers discover the tools you use. Get visibility for your team's tech choices and contribute to the community's knowledge.

View Docs
CLI (Node.js)
or
Manual

Detailed Comparison

Valhalla
Valhalla
OSRM
OSRM

Valhalla is Mapzen’s open-source routing service for client-side routing applications and hosted solutions. If you are looking to avoid the challenge of data creation and database administration, you can get high-quality routes and navigational guidance with clear directions through a simple API call.

It is a C++ implementation of a high-performance routing engine for shortest paths in road networks

Flexible routes and options; Narrative guidance; Timely data updates
Flexible import of OpenStreetMap data; Handles continental sized networks within milliseconds; Supports car, bicycle, walk modes; easily customized through profiles
Statistics
GitHub Stars
-
GitHub Stars
7.2K
GitHub Forks
-
GitHub Forks
3.8K
Stacks
14
Stacks
34
Followers
58
Followers
85
Votes
3
Votes
0
Pros & Cons
Pros
  • 3
    Open source
No community feedback yet
Integrations
No integrations available
C++
C++
GitHub
GitHub
JavaScript
JavaScript

What are some alternatives to Valhalla, OSRM?

Google Maps

Google Maps

Create rich applications and stunning visualisations of your data, leveraging the comprehensiveness, accuracy, and usability of Google Maps and a modern web platform that scales as you grow.

Mapbox

Mapbox

We make it possible to pin travel spots on Pinterest, find restaurants on Foursquare, and visualize data on GitHub.

Leaflet

Leaflet

Leaflet is an open source JavaScript library for mobile-friendly interactive maps. It is developed by Vladimir Agafonkin of MapBox with a team of dedicated contributors. Weighing just about 30 KB of gzipped JS code, it has all the features most developers ever need for online maps.

OpenStreetMap

OpenStreetMap

OpenStreetMap is built by a community of mappers that contribute and maintain data about roads, trails, cafés, railway stations, and much more, all over the world.

OpenLayers

OpenLayers

An opensource javascript library to load, display and render maps from multiple sources on web pages.

ArcGIS

ArcGIS

It is a geographic information system for working with maps and geographic information. It is used for creating and using maps, compiling geographic data, analyzing mapped information, sharing and much more.

CSV2GEO

CSV2GEO

It provides live conversion of batch addresses into geographic coordinates (address to lat long) or turn coordinates into well formatted address. It creates and publishes interactive maps.

MapTiler

MapTiler

It is a software for map tile rendering. It has been designed for producing seamless maps and aerial photo layers covering whole countries. The rendering is fast and efficient, and it can fully utilize multiple CPUs to 100%.

MAPS.ME

MAPS.ME

MAPS.ME is an open source cross-platform offline maps application, built on top of crowd-sourced OpenStreetMap data. It was publicly released for iOS and Android.

LocationIQ

LocationIQ

Free and Fast Geocoding Service

Related Comparisons

Postman
Swagger UI

Postman vs Swagger UI

Mapbox
Google Maps

Google Maps vs Mapbox

Mapbox
Leaflet

Leaflet vs Mapbox vs OpenLayers

Twilio SendGrid
Mailgun

Mailgun vs Mandrill vs SendGrid

Runscope
Postman

Paw vs Postman vs Runscope