ReadonlydistThe total distance of the track in kilometers.
ReadonlyfinishThe finishing location of the track.
ReadonlygainThe total elevation gain of the track in meters.
ReadonlylossThe total elevation loss of the track in meters.
ReadonlypointsAn array of track points that make up the track.
ReadonlystartThe starting location of the track.
Reduces the density of track points based on the specified spacing and length.
Optionalspacing: numberThe desired spacing between points (optional).
Optionallength: numberThe desired length of the track (optional).
A new track with reduced point density.
Represents a track with various properties and methods to interact with it.