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

    Interface ActivitySummary

    Everything the activity summary holds, computed from one activity's streams.

    interface ActivitySummary {
        bounds: [[number, number], [number, number]] | null;
        channels: ChannelProfile[];
        distanceMeters: number;
        elapsedTimeSeconds: number;
        elevationGainMeters: number;
        elevationLossMeters: number;
        gpsSpans?: GpsSpan[];
        laps: Lap[];
        movingTimeSeconds: number;
        pointCount: number;
        polyline: [number, number][];
        splits: Split[];
        startTimeUtc: string;
    }
    Index

    Properties

    bounds: [[number, number], [number, number]] | null

    [[minLat, minLng], [maxLat, maxLng]], or null for a GPS-less activity.

    channels: ChannelProfile[]

    Distance-grid profiles, one per present channel (elevation first).

    distanceMeters: number

    The same totals activity.stats() gives: distance on the activity's one distance axis (a pool swim's lengths, else the samples).

    elapsedTimeSeconds: number

    From the activity's start (or an earlier sample) to its last sample, or to a pool swim's last length.

    elevationGainMeters: number
    elevationLossMeters: number
    gpsSpans?: GpsSpan[]

    Present only when some samples had no GPS fix (an open water swim never: its cleaned line has a position at every sample): where each run of fixes sits on the distance axis and on the map line. Place a chart position on the map with lineDistanceAt / lineRange; their metres are along the raw joined fixes, so slice the simplified polyline with polylineSlice(..., { domainTotal: gpsSpans.at(-1).lineEndMeters }). Without it the two rulers are the same.

    laps: Lap[]

    Recorded laps (device-marked), if the source carried them.

    movingTimeSeconds: number

    By the activity's moving rule: a pool swim's lengths, the time between samples at or above MOVING_SPEED_MPS, or, for a swim with no GPS and nothing else to go by, the watch's swim time.

    pointCount: number
    polyline: [number, number][]

    Douglas–Peucker-simplified [lat, lng] line for the map overview; empty for a GPS-less activity (no map).

    splits: Split[]

    Per-kilometre splits (computed, evenly spaced).

    startTimeUtc: string