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

    Function interpolateAtDistance

    • The [lat,lng] point at cumulative distance meters along the polyline, linearly interpolated between the bracketing vertices. Clamps to the ends; non-finite meters resolves to the start; null for an empty polyline. cum may be passed to avoid recomputation — it MUST correspond to polyline (same length/order); a mismatch yields silently wrong results.

      Parameters

      • polyline: readonly [number, number][]
      • meters: number
      • cum: number[] = ...

      Returns [number, number] | null