getSteepSections method
Sections with abrupt elevation changes (steep segments).
The user provides a list of steep category thresholds (categs). Each
returned SteepSection references the index into that list.
Parameters
categs: List of slope thresholds (e.g.[-16, -10, -7, -4, -1, 1, 4, 7, 10, 16]).
Returns
- A list of SteepSection describing abrupt elevation changes.
Implementation
List<SteepSection> getSteepSections(final List<double> categs) {
final OperationResult resultString = objectMethod(
pointerId,
'RouteTerrainProfile',
'getSteepSections',
args: categs,
);
final List<dynamic> listJson = resultString['result'];
final List<SteepSection> retList = listJson
.map(
(final dynamic categoryJson) => SteepSection.fromJson(categoryJson),
)
.toList();
return retList;
}