@pond-ts/fit API Reference
    Preparing search index...

    Class Track

    Index

    Accessors

    Methods

    • Bounding box [[minLatitude, minLongitude], [maxLatitude, maxLongitude]]; null for an empty track.

      Returns [[number, number], [number, number]] | null

    • Cumulative distance (metres) at each vertex; [0] = 0. Memoized.

      Returns number[]

    • The point at a distance along the track, interpolated between the bracketing vertices and clamped to the ends; null for an empty track.

      Parameters

      Returns GeoPoint | null

    • The sub-track over [from, to], with the endpoints interpolated to the exact distances. domainTotal is the length the from/to ruler is measured in when it differs from this track's own (e.g. odometer metres vs a simplified polyline) — the window is then rescaled proportionally.

      Parameters

      Returns Track