compute_route_matrix
Compute travel time and distance for every origin against every destination in a single API call. Use it to rank locations by drive time, find the nearest branch, or check supplier reachability within a window.
Instructions
Get travel time and distance for every origin against every destination in one call — the comparison tool. Use it to pick the nearest branch, rank candidate sites by drive time, or check which of several suppliers is reachable inside a window. Each endpoint uses the same three forms as compute_route. Google bills this per pair, so origins times destinations is capped at 100.
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": {
"origins": "<origins>",
"destinations": "<destinations>"
},
"name": "compute_route_matrix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origins | Yes | ||
| avoid_tolls | No | ||
| travel_mode | No | DRIVE | |
| destinations | Yes | ||
| avoid_ferries | No | ||
| avoid_highways | No | ||
| departure_time | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||