Valhalla (maintained by the Valhalla open-source community and Linux Foundation / OSM ecosystem under the MIT License) is a high-performance open-source C++ routing engine and spatial navigation service built primarily around OpenStreetMap (OSM) data. Designed for turn-by-turn routing, multi-modal travel (auto, bicycle, pedestrian, truck, and public transit), travel-time isochrones, and origin-destination matrices, Valhalla gives GIS developers, logistics planners, and mapping teams a fast, self-hosted routing engine without recurring commercial routing API fees.
1. In-Depth Review: Why GIS & Mobility Teams Use Valhalla
- Multi-Modal Routing & Turn-by-Turn Navigation: Computes driving, cycling, walking, commercial vehicle, and transit routes with detailed turn instructions, elevation profiles, and time-dependent traffic/speed rules.
- Tiled Hierarchical Graph Architecture: Compiles OSM extracts into compact, traversable routing tiles so queries run quickly even across large regional or country-scale networks.
- Isochrones, Matrix & Map-Matching Endpoints: Supports reachability polygons (isochrones), time/distance matrices, and GPS trace map-matching for spatial analytics and fleet/field workflows.
2. Key Features & Capabilities
- Turn-by-Turn Route & Multi-Waypoint Planning: Calculate optimal paths across multiple stops with turn maneuvers, lane guidance, and avoid/access rules.
- Isochrone & Reachability Polygons: Generate travel-time or travel-distance polygons from origin points for service-area and accessibility analysis in GIS.
- Matrix & Map-Matching Services: Compute many-to-many travel times/distances and snap raw GPS tracks onto road networks.
- Multi-Modal Profiles & Truck/Vehicle Attributes: Customize routing profiles for cars, bikes, pedestrians, transit, and vehicle dimensions/restrictions.
- HTTP JSON API, Docker & C++ Build Support: Deploy via Docker containers or build natively from C++ source with HTTP endpoints ready for web and GIS apps.
- 100% Free & Open-Source (MIT License): Free to self-host, modify, and integrate into commercial or government mapping applications.
- Official Links: Free Trial, Free / Education & Pricing
Always download Valhalla source code, Docker images, and documentation directly from official Valhalla portals:
- Official Valhalla GitHub Repository: https://github.com/valhalla/valhalla
- Official Valhalla Releases & Source Archives: https://github.com/valhalla/valhalla/releases
- Official Valhalla Documentation: https://valhalla.github.io/valhalla/
- Official Docker Hub (`ghcr.io/valhalla/valhalla` / Docker guides): https://valhalla.github.io/valhalla/docker/

4. Step-by-Step Installation Guide
- Choose Docker or Native C++ Build: Decide whether to run Valhalla via official Docker images (recommended for faster setup) or compile from source on Linux/macOS/Windows.
- Prepare OSM Extract Data (`.osm.pbf`): Download the regional or country `.osm.pbf` map extract covering your target area into a local data directory.
- Generate Valhalla Config & Build Routing Tiles: Generate a `valhalla.json` configuration file and build the routing tile hierarchy from your `.osm.pbf` extract.
- Start the Valhalla Service & Test Health/Route Endpoint: Launch the Valhalla HTTP server/container and verify a sample route request returns valid JSON route geometry and instructions.
5. How to Use Valhalla: Beginner Workflow
- Obtain a Clean `.osm.pbf` Dataset: Place your target region's `.osm.pbf` file (and optional elevation tiles if using elevation-aware routing) inside your working/data folder.
- Create `valhalla.json` Configuration: Generate the base `valhalla.json` config pointing tile/admin/elevation paths to your data directory.
- Build the Routing Tile Graph: Run the tile-building command/script so Valhalla parses roads, turn restrictions, and speeds into routing tiles.
- Start the Routing Server: Run the Valhalla service/container and confirm the API port is listening locally or on your server.
- Query Route, Isochrone or Matrix Endpoints: Send coordinates (`locations`) and costing mode (`auto`, `bicycle`, `pedestrian`) to the API and visualize the resulting GeoJSON/polyline geometry in your web map or QGIS.
6. Frequently Asked Questions (FAQ)
- Is Valhalla free to use for commercial projects?Yes. Valhalla is released under the permissive MIT License, allowing free self-hosted use, modification, and commercial integration.
- What map data does Valhalla require to calculate routes?Valhalla builds its routing graph primarily from OpenStreetMap (`.osm.pbf`) data, with optional support for elevation data and transit feeds depending on your configuration.
- Can Valhalla generate travel-time polygons (isochrones) for GIS analysis?Yes. Valhalla includes an isochrone endpoint that returns reachability polygons based on travel time or distance from origin locations.