RouteTerrainProfile

RouteTerrainProfile object

Constructors

Link copied to clipboard
constructor(address: Long)
constructor(address: Long, isRef: Boolean)

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Link copied to clipboard

List of route climb sections.

Link copied to clipboard

Terrain max elevation

Link copied to clipboard

Terrain max elevation distance ( from route start )

Link copied to clipboard

Terrain min elevation

Link copied to clipboard

Terrain min elevation distance ( from route start )

Link copied to clipboard

List of route type sections

Link copied to clipboard

List of route surface sections

Link copied to clipboard

Total terrain elevation down.

Link copied to clipboard

Total terrain elevation up.

Functions

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard
external fun getElevation(distance: Int): Float

Get elevation at the given distance in meters from departure point/start of route.

Link copied to clipboard
external fun getElevationSamples(countSamples: Int): Pair<ArrayList<Float>, Float>?
external fun getElevationSamples(countSamples: Int, distBegin: Int, distEnd: Int): Pair<ArrayList<Float>, Float>?

Get elevation samples list

Link copied to clipboard
external fun getSteepSections(categories: ArrayList<Float>): ArrayList<SteepSection>?

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

Link copied to clipboard
external fun getTotalDown(distBegin: Int, distEnd: Int): Float

Get total terrain elevation down for specified route section.

Link copied to clipboard
external fun getTotalUp(distBegin: Int, distEnd: Int): Float

Get total terrain elevation up for specified route section.

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if: