Home > @magiclane/maps-sdk > RouteTerrainProfile
RouteTerrainProfile class
Route terrain profile
This class should not be instantiated directly. Instead, use the RouteBase.terrainProfile getter to obtain an instance. Note that the RoutePreferences.buildTerrainProfile setting should be configured correctly when calling the RoutingService.calculateRoute method for the RouteBase.terrainProfile getter to return a valid object.
Signature:
export declare class RouteTerrainProfile extends GemAutoreleaseObject Extends: GemAutoreleaseObject
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
Get list of route climb sections. Climb sections are the difficult climbing parts of a route. The climb categories are defined in Grade. If none of the climbing parts of a route are at least Grade.grade4, the list will be empty. | ||
|
|
number | ||
|
|
number |
Get terrain maximum elevation. | |
|
|
number |
Get the distance (from route start) where the elevation is maximum. | |
|
|
number |
Get terrain minimum elevation. | |
|
|
number |
Get the distance (from route start) where the elevation is minimum. | |
|
|
number | bigint | ||
|
|
Get list of route type sections. Each section has the start distance from route start and the road type (see RoadType). The end of the section is the distance from start of the next section or route total length (for the last section) | ||
|
|
Get list of route surface sections. Each section has the start distance from route start and the surface type (see SurfaceType). The end of the section is the distance from start of the next section or route total length (for the last section) | ||
|
|
number |
Get total terrain elevation down. | |
|
|
number |
Get total terrain elevation up. |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Get elevation at the given distance in meters from departure point/start of route. | ||
|
Get elevation samples list. | ||
|
Get list of route sections which are abrupt, that is, they have a significant elevation change. | ||
|
|