route_valhalla
Compute routes between waypoints using Valhalla with diverse costing models (auto, bicycle, pedestrian, truck). Optionally add the route as a line layer to the QGIS project.
Instructions
Compute a route between waypoints via Valhalla, with richer costing models than OSRM.
waypoints is a list of [lat, lon] pairs (>= 2). costing is a
Valhalla costing model, e.g. "auto", "bicycle", "pedestrian", "truck".
Uses a community-run public Valhalla demo by default (best-effort, no
SLA - see routing_client.py); pass base_url for your own instance.
Returns distance (km) and duration (s); pass add_to_project=True to
also add the route geometry as a line layer (EPSG:4326).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| costing | No | auto | |
| base_url | No | ||
| waypoints | Yes | ||
| layer_name | No | ||
| add_to_project | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||