Calculate a distance matrix between points
MatrixResult Routing.Matrix(RoutingMatrixParamsparameters, CancellationTokencancellationToken = default)
POST/api/v1/matrix
Calculate a distance matrix between points
RoutingMatrixParams parameters = new()
{
Destinations = new()
{
Coordinates = new(
[
0
]
),
Type = Type.Point,
},
Origins = new()
{
Coordinates = new(
[
0
]
),
Type = Type.Point,
},
};
var matrixResult = await client.Routing.Matrix(parameters);
Console.WriteLine(matrixResult);{
"distances": [
[
0
]
],
"durations": [
[
0
]
]
}Returns Examples
{
"distances": [
[
0
]
],
"durations": [
[
0
]
]
}