Self-host Valhalla
3.9.1Open-source routing engine for OpenStreetMap data
- Stars
- 6 429
- Port
- 8002 (HTTP API service)
ghcr.io/valhalla/valhalla-scriptedWhat is Valhalla?
Valhalla is an open-source routing engine and library suite for OpenStreetMap data. It offers turn-by-turn routing for auto, pedestrian, bicycle, and transit modes, plus isochrone generation, time-distance matrices, map matching, elevation sampling, and traveling salesman optimization. The engine uses a tiled hierarchical data structure for efficient memory use and offline routing. It can be self-hosted via Docker images (base, scripted, and dev variants), built from source on Linux, macOS, and Windows, or used through Python and Node.js bindings. A public demo server is available at valhalla.openstreetmap.de. The project is MIT-licensed and actively maintained with regular releases.
Valhalla alternatives
GraphHopperGraphHopper is a self-hosted, open-source OpenStreetMap routing engine with A-to-B routing, isochrones, map matching, and GTFS transit. Runs as Java server or library.CompareGraphHopper with Valhalla
Project OSRMOpen Source Routing Machine - C++ backendCompareProject OSRM with Valhalla
smsSelf-hosted vector tile server serving OSM data from MBTiles with hiking/cycling routing, SAC ratings, and MCP for LLM agents to plan tours.Comparesms with Valhalla
wandererSelf-hosted, open-source trail database to store, plan, and share GPX routes: ActivityPub federation, Valhalla routing, Meilisearch search, iOS/Android app.Comparewanderer with Valhalla
OpenTripPlannerSelf-hosted, open-source trip planner for scheduled public transit plus walking, cycling and bikeshare, built from GTFS/NeTEx and OpenStreetMap data.CompareOpenTripPlanner with Valhalla
facilmapFacilMap is a self-hosted, open-source OpenStreetMap web map for collaborative maps with markers, routes, live editing, multiple styles, routing, and GPX/GeoJSON import.Comparefacilmap with Valhalla
OpenStreetMapOpen-source, self-hosted Ruby on Rails app powering the OpenStreetMap website and its XML/JSON editing API, with accounts, GPX traces and diaries, backed by PostgreSQL.CompareOpenStreetMap with Valhalla
TREKOpen-source, self-hosted trip organizer: map-based day plans, cost splitting, bookings, packing lists, live collaborative editing, SSO and offline PWA support.CompareTREK with Valhalla
Should you self-host Valhalla?
Valhalla scores 71/100 on selfhost.directory (how scoring works) and ranks #1 of 7 in Navigation. It has 6 429 GitHub stars, +146 in the last 30 days.
It shipped 10 stable releases in the past year. The latest, 3.9.1, came out on 6 October 2026. New versions land roughly every 5 weeks.
Setup is advanced: plan for several services and some ongoing maintenance. An official Docker image is available. It is Other-licensed and written mostly in C++.
Its closest alternative on selfhost.directory is Open Source Routing Machine (OSRM) (71/100, 8 197 stars). Valhalla scores higher overall. See Valhalla vs Open Source Routing Machine (OSRM) side by side.
Features
- Dynamic costing
- Elevation sampling
- HTTP API service
- Isochrone generation
- Map Matching
- Node.js Bindings
- Offline routing
- One-shot CLI mode
- Python Bindings
- Tiled hierarchical data structure
- Time-dependent routing
- Time-distance matrix
- Tour optimization (TSP)
- Transit routing (GTFS)
- Turn-by-turn routing
Valhalla README
██▒ █▓ ▄▄▄ ██▓ ██░ ██ ▄▄▄ ██▓ ██▓ ▄▄▄
▓██░ █▒▒████▄ ▓██▒ ▓██░ ██▒▒████▄ ▓██▒ ▓██▒ ▒████▄
▓██ █▒░▒██ ▀█▄ ▒██░ ▒██▀▀██░▒██ ▀█▄ ▒██░ ▒██░ ▒██ ▀█▄
▒██ █░░░██▄▄▄▄██ ▒██░ ░▓█ ░██ ░██▄▄▄▄██ ▒██░ ▒██░ ░██▄▄▄▄██
▒▀█░ ▓█ ▓██▒░██████▒░▓█▒░██▓ ▓█ ▓██▒░██████▒░██████▒▓█ ▓██▒
░ ▐░ ▒▒ ▓▒█░░ ▒░▓ ░ ▒ ░░▒░▒ ▒▒ ▓▒█░░ ▒░▓ ░░ ▒░▓ ░▒▒ ▓▒█░
░ ░░ ▒ ▒▒ ░░ ░ ▒ ░ ▒ ░▒░ ░ ▒ ▒▒ ░░ ░ ▒ ░░ ░ ▒ ░ ▒ ▒▒ ░
░░ ░ ▒ ░ ░ ░ ░░ ░ ░ ▒ ░ ░ ░ ░ ░ ▒
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
░
Valhalla is an open source routing engine and accompanying libraries for use with OpenStreetMap data. Valhalla also includes tools like time+distance matrix computation, isochrones, elevation sampling, map matching and tour optimization (Travelling Salesman).
More in Navigation
Vanchor-NGSelf-hosted GPS autopilot turning a trolling motor into a virtual anchor with routing and fishing modes — runs offline on Raspberry Pi or in simulation.
facilmapFacilMap is a self-hosted, open-source OpenStreetMap web map for collaborative maps with markers, routes, live editing, multiple styles, routing, and GPX/GeoJSON import.
GraphHopperGraphHopper is a self-hosted, open-source OpenStreetMap routing engine with A-to-B routing, isochrones, map matching, and GTFS transit. Runs as Java server or library.
HaukHauk is an open-source, self-hosted real-time location sharing service with PHP backend and Android app. Run your own server and share location via generated links.
MBCompassAn open-source, self-hosted-on-device Android compass app: GPS location, track recording, GPX export, offline Mapsforge maps, zero ads or tracking.
OpenRouteServiceSelf-hosted, open-source Java routing API on OpenStreetMap data offering directions, isochrones, time-distance matrices, snapping and graph export.
Open Source Routing Machine (OSRM)An open-source routing engine you self-host to answer route, matrix, map-matching, trip and tile queries over OpenStreetMap extracts via HTTP.
OpenStreetMapOpen-source, self-hosted Ruby on Rails app powering the OpenStreetMap website and its XML/JSON editing API, with accounts, GPX traces and diaries, backed by PostgreSQL.
OpenTripPlannerSelf-hosted, open-source trip planner for scheduled public transit plus walking, cycling and bikeshare, built from GTFS/NeTEx and OpenStreetMap data.
Project OSRMOpen Source Routing Machine - C++ backend
roadbookRoadbookMaker is a self-hosted, open-source web app for creating travel itineraries on interactive maps with AI-assisted planning and offline-first design.
smsSelf-hosted vector tile server serving OSM data from MBTiles with hiking/cycling routing, SAC ratings, and MCP for LLM agents to plan tours.
0 comments