get-directions
Retrieve turn-by-turn directions between two locations, including distance, duration, and route geometry as GeoJSON. Supports driving, cycling, and walking modes.
Instructions
Get directions between two points with distance, duration, and turn-by-turn steps. Returns a GeoJSON LineString of the route geometry.
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": {
"from": "<from>",
"to": "<to>",
"transport_mode": "<transport_mode>"
},
"name": "get-directions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | Starting point | |
| to | Yes | Destination point | |
| transport_mode | Yes | Travel mode |