Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 1.66 KB

valhalla-gettingstart.md

File metadata and controls

51 lines (34 loc) · 1.66 KB

What is Valhalla

README is the first document you should read before anything.
Docs provides more information if you want to go further.

What Valhalla can do

single_cell

Code

For how to build from source code, please go to Building from source

Data

For how to build data, please go to document here: Mjolnir: Getting started Guide

Debug

Data generation

Make sure valhalla_tiles.tar and valhalla.json is correctly generated.

MapMatching

For debugging offline MapMatching, you could generate valhalla_run_map_match by modifying CMakeFile:

-set(valhalla_programs valhalla_run_route valhalla_run_isochrone)
+set(valhalla_programs valhalla_run_route valhalla_run_isochrone valhalla_run_map_match)

The config for valhalla_run_map_match is valhalla.json

./valhalla_run_map_match path/valhalla.json

The input for valhalla_run_map_match is {lon lat} pair

13.225727 52.507321
13.224886 52.507435
13.223781 52.507598
13.222418 52.507856

Routing

For debugging Routing, you could try with valhalla_run_route by

valhalla_run_route -j '{"locations":[{"lat":52.529816,"lon":13.425419,"type":"break","city":"Berlin"},{"lat":52.510354,"lon":13.490896,"type":"break","city":"berlin"}],"costing":"auto","directions_options":{"units":"miles"}}' --config path/valhalla.json