route_matrix
Compute a many-to-many travel time and distance matrix for up to 25 origins and destinations using OSRM routing.
Instructions
Compute a many-to-many travel time/distance matrix via OSRM's table service.
origins/destinations are lists of [lat, lon] pairs; destinations
defaults to origins (a full origins x origins matrix). Capped at 25
points per side - split larger matrices into multiple calls. Returns
durations_s and distances_m as origins x destinations matrices
(entries are null where no route exists).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origins | Yes | ||
| profile | No | car | |
| base_url | No | ||
| destinations | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||