Get a driving, truck, cycling or walking route in the US
directionsRoute between 2 to 25 points in the United States, in the order given, by car, truck, bike or foot (OpenStreetMap roads, Valhalla engine). Returns distance in metres, duration in seconds and the route line as an encoded polyline (precision 6); steps=true adds turn-by-turn instructions. Travel times are free-flow estimates with no live traffic: never present them as a live ETA. Geocode addresses first (geocode tool). Counts 1 address lookup against the monthly cap.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"points": "<points>"
},
"name": "directions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| avoid | No | Kinds of road to avoid where possible | |
| steps | No | Include turn-by-turn instructions | |
| points | Yes | Stops in travel order, each [lat, lon] | |
| profile | No | How to travel: car, truck (keeps to roads trucks may use), bike or foot | car |
| alternatives | No | Extra alternative routes (2 points only) |