Skip to main content

MatrixResponse

durationsnumber<double>[][]

Travel times in seconds. durations[i][j] = source i → destination j. -1 means unreachable.

Example: [[0,780.5],[420.1,0]]
distancesnumber<double>[][]

Travel distances in metres. distances[i][j] = source i → destination j. -1 means unreachable.

Example: [[0,4250],[2100.5,0]]
sourcesinteger

Number of source points in the matrix.

Example: 2
destinationsinteger

Number of destination points in the matrix.

Example: 2
MatrixResponse
{
"durations": [
[
0,
780.5
],
[
420.1,
0
]
],
"distances": [
[
0,
4250
],
[
2100.5,
0
]
],
"sources": 2,
"destinations": 2
}