Type Alias CallbackData

Event data to onMove and onClick callback

type CallbackData = {
    distance: number;
    dPlus: number;
    gradePercent: number;
    position: Position;
}
Index

Properties

distance: number

The distance from the start of the route. In km if the component has been set with the unit "metric" (default) of in miles if the unit is "imperial".

dPlus: number

Cumulated positive elevation from the begining of the route up to this location. In meters if the component has been set with the unit "metric" (default) of in feet if the unit is "imperial".

gradePercent: number

Slope grade in percentage (1% being a increase of 1m on a 100m distance)

position: Position

The position as [lon, lat, elevation]. Elevation will be in meters if the component has been set with the unit "metric" (default) of in feet if the unit is "imperial".

Was this helpful?

SDK JS
Modules
Reference
types
CallbackData