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

    Function lineRange

    • A stretch of the distance axis on the map line, by the gpsSpans: the part with fixes, from the first fix at or after startMeters to the last at or before endMeters. Null when no fix falls inside it.

      The result is in raw-line metres: to slice a simplified polyline pass domainTotal (the last span's lineEndMeters) to polylineSlice. Use this, not domainTotal alone, when the summary has gpsSpans — a proportional rescale would spread the line over metres it never covered.

      Parameters

      • spans: readonly GpsSpan[]
      • startMeters: number
      • endMeters: number

      Returns [number, number] | null