Skip to main content

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

Matrix computed