Calculate a distance matrix between points
IReadOnlyDictionary<string, JsonElement> Routing.Matrix(RoutingMatrixParamsparameters, CancellationTokencancellationToken = default)
POST/api/v1/matrix
Calculate a distance matrix between points
Calculate a distance matrix between points
RoutingMatrixParams parameters = new()
{
Destinations =
[
new()
{
Lat = 48.8584,
Lng = 2.2945,
},
],
Origins =
[
new()
{
Lat = 48.8566,
Lng = 2.3522,
},
new()
{
Lat = 48.8606,
Lng = 2.3376,
},
],
};
var matrixResult = await client.Routing.Matrix(parameters);
Console.WriteLine(matrixResult);{
"foo": "bar"
}Returns Examples
{
"foo": "bar"
}