Maps Compute Route
maps_compute_routeCalculate route travel time and distance for driving, walking, or cycling, with up to 8 stops and optional turn-by-turn steps or alternatives.
Instructions
Travel time and distance through the stops in order (Routes API computeRoutes shape): {travelMode, routes: [{description, distanceMeters, duration, staticDuration, localizedValues, durationWithoutTraffic, durationRange, departureTime, arrivalTime, legs: [{distanceMeters, duration, staticDuration, startLocation, endLocation, localizedValues}]}], waypoints: [{query, displayName, formattedAddress, placeId, location}], googleMapsUri, condition, note}. duration is in traffic for DRIVE (now or at departureTime/arrivalTime), otherwise typical. includeSteps fills legs[].steps [{distanceMeters, staticDuration, startLocation, navigationInstruction {maneuver, instructions}, localizedValues, notices}] and legs[].segments [{instructions, distanceMeters, staticDuration, firstStepIndex, stepCount}]; includePolyline fills routes[].polyline {encodedPolyline}.
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_compute_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | Yes | A place name or address ('Albertina, Vienna'), a place id (ChIJ…) or 'lat,lng' | |
| travelMode | No | DRIVE (default), WALK or BICYCLE | DRIVE |
| arrivalTime | No | Local wall-clock time at the stop, e.g. 2026-10-22T08:30 (no offset) | |
| destination | Yes | A place name or address ('Albertina, Vienna'), a place id (ChIJ…) or 'lat,lng' | |
| includeSteps | No | Add turn-by-turn steps and segments per leg | |
| departureTime | No | Local wall-clock time at the stop, e.g. 2026-10-22T08:30 (no offset) | |
| intermediates | No | Stops in between, in order (max 8) | |
| includePolyline | No | Add the route line (encoded polyline) | |
| computeAlternativeRoutes | No | Also return alternatives (max 3) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||