Calculate a distance matrix between points
POST/api/v1/matrix
Calculate a distance matrix between points
curl https://plaza.fyi/api/v1/matrix \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $PLAZA_API_KEY" \
-d '{
"destinations": {
"coordinates": [
0
],
"type": "Point"
},
"origins": {
"coordinates": [
0
],
"type": "Point"
}
}'{
"distances": [
[
0
]
],
"durations": [
[
0
]
]
}Returns Examples
{
"distances": [
[
0
]
],
"durations": [
[
0
]
]
}