Elevation profile along coordinates
ElevationProfileResult Elevation.Profile(ElevationProfileParamsparameters, CancellationTokencancellationToken = default)
POST/api/v1/elevation/profile
Elevation profile along coordinates
ElevationProfileParams parameters = new()
{
Coordinates =
[
new()
{
Lat = 48.8566,
Lng = 2.3522,
},
new()
{
Lat = 48.858,
Lng = 2.34,
},
new()
{
Lat = 48.8584,
Lng = 2.2945,
},
],
};
var elevationProfileResult = await client.Elevation.Profile(parameters);
Console.WriteLine(elevationProfileResult);{
"geometry": {
"coordinates": [
2.3522,
48.8566
],
"type": "Point"
},
"properties": {
"avg_elevation_m": 67.8,
"max_elevation_m": 155.3,
"min_elevation_m": 28.1,
"total_ascent_m": 127.4,
"total_descent_m": 89.2
},
"type": "Feature"
}Returns Examples
{
"geometry": {
"coordinates": [
2.3522,
48.8566
],
"type": "Point"
},
"properties": {
"avg_elevation_m": 67.8,
"max_elevation_m": 155.3,
"min_elevation_m": 28.1,
"total_ascent_m": 127.4,
"total_descent_m": 89.2
},
"type": "Feature"
}