Route (capped)
maps_routeCalculate travel time and distance between two addresses or coordinates for driving, walking, cycling, or transit, with Spend Brake pricing each route call against your budget cap.
Instructions
Route between two places. Default field mask routes.duration,routes.distanceMeters (Essentials). mode defaults to drive. A wider mask costs more.
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_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| fields | No | X-Goog-FieldMask. The default is the cheapest useful set; a wider mask costs more. | |
| origin | Yes | Address, or "lat,lng" | |
| destination | Yes | Address, or "lat,lng" |