route
Calculate a turn-by-turn route between 2–10 waypoints. Supported costing: auto, bicycle, pedestrian, truck, motor_scooter, and bus. Returns GeoJSON, distance, duration, and maneuvers. Set elevation to true for a terrain profile with gain and loss. Requires a subscription key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| costing | No | Travel mode used to weight the road graph. | auto |
| elevation | No | Sample a terrain profile along the route and report total gain and loss in metres. | |
| locations | Yes | Ordered waypoints, 2 to 10; first is the origin and last is the destination. |