maps_directions
Get route distance, traffic-aware travel time, turn-by-turn steps, and a Google Maps link between two places, with optional stops and alternative routes.
Instructions
Route between two places: distance, travel time (traffic-aware for driving), turn-by-turn steps and a Google Maps link. Optional stops and alternatives.
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": {
"origin": "<origin>",
"destination": "<destination>"
},
"name": "maps_directions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | DRIVE | |
| stops | No | ||
| units | No | METRIC | |
| origin | Yes | Address/place name, or {lat, lng} | |
| avoidTolls | No | ||
| destination | Yes | Address/place name, or {lat, lng} | |
| alternatives | No | ||
| includeSteps | No | ||
| avoidHighways | No | ||
| departureTime | No | ISO date-time; default now |