Distance and duration matrix
POST/v2/route/matrix
Computes a distance-and-duration matrix between N sources and M destinations.
If destinations is omitted, a symmetric N×N matrix over sources is returned.
Each cell contains travel time in seconds and distance in metres; -1 means
the pair is unreachable.
Maximum: 50 sources × 50 destinations per request.
Request
Responses
- 200
- 400
- 503
Matrix computed
Missing sources or invalid request
Routing service temporarily unavailable
Response Headers
Retry-After