talira

Valhalla

Open source routing engine for OpenStreetMap

open sourceMITself-hostablefree

Valhalla is an open source routing engine and set of C++ libraries for OpenStreetMap data, started at Mapzen and Mapillary and now maintained by the Valhalla community under the MIT licence. Its HTTP service answers turn-by-turn route, optimized route (travelling salesman), time-distance matrix, isochrone, map matching, locate, elevation and expansion requests, with costing models for cars, bicycles, pedestrians, trucks, buses, taxis, motor scooters, motorcycles, bike share and multimodal trips with public transit, chosen at request time. Graph data is cut into hierarchical tiles, so it can run in a small memory footprint, offline on phones, or on regional extracts, and narrative directions come in about 28 languages. You run it with its Docker images, as command-line tools, or embedded through its Python (pyvalhalla), Node.js and Rust bindings; it's fully functional on Linux and macOS and used on iOS and Android. FOSSGIS e.V. hosts a public demo server with a full planet graph under a fair-use policy.

Ways to install

Problems it solves

  • get driving directions in my app without paying per request to Google Maps
  • self-host a routing API on OpenStreetMap data
  • draw areas reachable within 15 minutes by car or on foot from a location
  • compute a travel time matrix between hundreds of delivery stops
  • find the best order to visit a list of addresses for a delivery driver
  • snap noisy GPS traces from our vehicles onto the actual roads
  • truck routing that respects height, weight and hazmat restrictions
  • bike routes that avoid steep hills using elevation data
  • offline turn-by-turn navigation inside a mobile app with no internet
  • route planning that mixes walking and public transit with departure times
  • turn-by-turn instructions in German, French and other languages
  • change how routes are weighted per request, like avoiding tolls or highways
  • run routing on just one country's map extract on a small server
  • call a routing engine directly from Python without running a separate server
  • an open source alternative to OSRM with isochrones and multimodal routing

View all 17 problems

Features

  • turn-by-turn routes with narrative directions in about 28 languages
  • optimized routes (travelling salesman)
  • time-distance matrices
  • isochrones
  • map matching of GPS traces
  • elevation sampling (Skadi) and elevation-influenced bicycle routing
  • costing models: auto, bicycle, bus, bikeshare, truck, taxi, motor scooter, motorcycle, multimodal, pedestrian
  • dynamic, runtime costing through a plugin architecture
  • tiled hierarchical graph for small memory use, offline routing and regional extracts
  • multimodal, time-dependent routing with public transit
View 3 more
  • output as JSON, GPX, OSRM-compatible JSON or protocol buffers
  • valhalla_service HTTP server and one-shot mode, plus tools to build tiles
  • Docker images, Python (pyvalhalla), Node.js and Rust bindings

Limitations

  • Not every part runs on Windows: the library, command-line tools, data tools and Python bindings build there, but not the full HTTP service3
  • No hosted API for production use: the public demo server has fair-use rate limits, so production apps run their own Valhalla3

Capabilities

Has an APIplan not known
Has a command line toolplan not known
Takes pluginsplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what Valhalla does.

  1. Open Source Routing Machine (OSRM) High performance routing engine for OpenStreetMap data
  2. GraphHopper Open source routing engine for OpenStreetMap, and a hosted Directions API

Compare Valhalla with the top 3