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. Valhalla vs pgRouting

Valhalla vs pgRouting

OverviewComparisonAlternatives

Overview

Valhalla
Valhalla
Stacks14
Followers58
Votes3
pgRouting
pgRouting
Stacks10
Followers24
Votes8

Valhalla vs pgRouting: What are the differences?

Introduction: Valhalla and pgRouting are two popular routing engines used in geographical information systems (GIS). While both are powerful tools for calculating routes, there are several key differences between them that make them suitable for different use cases.

  1. Data Sources: The first significant difference between Valhalla and pgRouting lies in their data sources. Valhalla utilizes OpenStreetMap (OSM) data to compute routes, enabling it to take advantage of the rich and constantly updated information available in OSM. On the other hand, pgRouting can work with various data sources, including OSM, databases like PostgreSQL, or even Shapefiles, providing more flexibility in choosing the underlying data.

  2. Network Model: Valhalla and pgRouting employ different network models for routing calculations. Valhalla uses a multi-modal graph model, which means it can handle not only road networks but also other travel modes like public transit, biking, or walking. This flexibility makes Valhalla suitable for diverse routing scenarios. In contrast, pgRouting utilizes a more traditional network model specifically designed for road networks, making it a preferred option when focusing solely on road-based routing.

  3. Algorithmic Approach: Another key difference lies in the algorithms employed by Valhalla and pgRouting. Valhalla relies on a custom algorithm called "Dijkstrance" that combines A* search and Dijkstra's algorithm, allowing it to compute routes efficiently with options like time-aware or distance-optimized routing. In contrast, pgRouting offers a range of routing algorithms, including Dijkstra's, A*, or even bidirectional algorithms, giving users more flexibility when choosing the algorithm best suited for their specific use case.

  4. Extended Features: Valhalla and pgRouting also differ in terms of the additional features they offer. Valhalla, for instance, provides advanced features like turn-by-turn directions, isochrones (areas reachable within a specific time or distance), and matrix calculations (computing travel times or distances between multiple points). On the other hand, pgRouting comes with a set of useful functions to work with road networks, including functions for calculating closest points, calculating shortest paths across multiple layers, or even performing network analysis operations.

  5. Integration and APIs: Valhalla and pgRouting also offer different integration options and APIs. Valhalla provides a complete routing solution with customizable server-side APIs and SDKs for different programming languages, facilitating its integration into various systems. Conversely, pgRouting integrates directly into the PostgreSQL database, providing seamless integration with spatial databases and enabling SQL-based queries for routing calculations.

  6. Community and Support: Lastly, Valhalla and pgRouting differ in terms of their communities and support. Valhalla has gained popularity within the open-source mapping community and benefits from active developer support. It also has an extensive documentation repository and a dedicated issue tracker for bug reporting. On the other hand, pgRouting has a well-established community built around the PostgreSQL ecosystem, providing forums, mailing lists, and official documentation specific to pgRouting.

In summary, Valhalla and pgRouting differ in their data sources, network models, algorithmic approaches, extended features, integration options, and community support. Understanding these differences is crucial in selecting the appropriate routing engine based on the specific requirements of a GIS project.

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
pgRouting
pgRouting

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 an extension of PostGIS and PostgreSQL geospatial database and adds routing and other network analysis functionality.

Flexible routes and options; Narrative guidance; Timely data updates
All Pairs Shortest Path, Johnson’s Algorithm; All Pairs Shortest Path, Floyd-Warshall Algorithm; Shortest Path A*; Bi-directional Dijkstra Shortest Path; Bi-directional A* Shortest Path; Shortest Path Dijkstra; Driving Distance; K-Shortest Path, Multiple Alternative Paths; K-Dijkstra, One to Many Shortest Path; Traveling Sales Person; Turn Restriction Shortest Path (TRSP)
Statistics
Stacks
14
Stacks
10
Followers
58
Followers
24
Votes
3
Votes
8
Pros & Cons
Pros
  • 3
    Open source
Pros
  • 3
    Dynamic routing
  • 1
    Data changes are reflected instantaneously
  • 1
    QGIS plugin
  • 1
    Routing in the database
  • 1
    Geospatial network analysis
Integrations
No integrations available
PostgreSQL
PostgreSQL
PostGIS
PostGIS

What are some alternatives to Valhalla, pgRouting?

dbForge Studio for MySQL

dbForge Studio for MySQL

It is the universal MySQL and MariaDB client for database management, administration and development. With the help of this intelligent MySQL client the work with data and code has become easier and more convenient. This tool provides utilities to compare, synchronize, and backup MySQL databases with scheduling, and gives possibility to analyze and report MySQL tables data.

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.

dbForge Studio for Oracle

dbForge Studio for Oracle

It is a powerful integrated development environment (IDE) which helps Oracle SQL developers to increase PL/SQL coding speed, provides versatile data editing tools for managing in-database and external data.

dbForge Studio for PostgreSQL

dbForge Studio for PostgreSQL

It is a GUI tool for database development and management. The IDE for PostgreSQL allows users to create, develop, and execute queries, edit and adjust the code to their requirements in a convenient and user-friendly interface.

dbForge Studio for SQL Server

dbForge Studio for SQL Server

It is a powerful IDE for SQL Server management, administration, development, data reporting and analysis. The tool will help SQL developers to manage databases, version-control database changes in popular source control systems, speed up routine tasks, as well, as to make complex database changes.

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.

Liquibase

Liquibase

Liquibase is th leading open-source tool for database schema change management. Liquibase helps teams track, version, and deploy database schema and logic changes so they can automate their database code process with their app code process.

Sequel Pro

Sequel Pro

Sequel Pro is a fast, easy-to-use Mac database management application for working with MySQL databases.

DBeaver

DBeaver

It is a free multi-platform database tool for developers, SQL programmers, database administrators and analysts. Supports all popular databases: MySQL, PostgreSQL, SQLite, Oracle, DB2, SQL Server, Sybase, Teradata, MongoDB, Cassandra, Redis, etc.

Related Comparisons

Bootstrap
Materialize

Bootstrap vs Materialize

Laravel
Django

Django vs Laravel vs Node.js

Bootstrap
Foundation

Bootstrap vs Foundation vs Material UI

Node.js
Spring Boot

Node.js vs Spring-Boot

Liquibase
Flyway

Flyway vs Liquibase