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.
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 | |||