Home > @magiclane/maps-sdk > RouteTerrainProfile > getSteepSections

RouteTerrainProfile.getSteepSections() method

Get list of route sections which are abrupt, that is, they have a significant elevation change.

Signature:

getSteepSections(categs: number[]): SteepSection[];

Parameters

Parameter

Type

Description

categs

number[]

The user list of steep categories. Each entry contains the max slope for the steep category as diffX / diffY.

Returns:

SteepSection[]

The steep sections list

Exceptions

An exception if it fails.