Calculate a distance matrix between points
POST/api/v1/matrix
Calculate a distance matrix between points
Body ParametersJSON
annotations: optional string
Comma-separated list of annotations to include: duration (always included), distance. Example: duration,distance.
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": [
{
"lat": 48.8584,
"lng": 2.2945
}
],
"origins": [
{
"lat": 48.8566,
"lng": 2.3522
},
{
"lat": 48.8606,
"lng": 2.3376
}
]
}'{
"foo": "bar"
}Returns Examples
{
"foo": "bar"
}