Travel time/distance matrix
route_matrixCalculate travel times and distances from every origin to every destination in one call. Empty cells show where no route exists.
Instructions
Computes travel times and distances from every origin to every destination in one call — ideal for comparing options (e.g. 5 hotels against 3 sights). Cells are null where no route exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origins | Yes | ||
| profile | Yes | Travel mode: on foot, by car or by bicycle | |
| language | No | Language for resolved place labels, default "en" | |
| destinations | Yes |