UNPKG

@sports-alliance/sports-lib

Version:

A Library to for importing / exporting and processing GPX, TCX, FIT and JSON files from services such as Strava, Movescount, Garmin, Polar etc

33 lines (32 loc) 1.38 kB
import { RouteFileInterface } from '../../../route-file.interface'; import { RouteParsingOptions } from '../../../route-parsing-options'; import { Buffer } from 'buffer'; export declare class RouteImporterFIT { private static readonly geoLibAdapter; static getFromArrayBuffer(arrayBuffer: ArrayBuffer | Buffer<ArrayBuffer>, options?: RouteParsingOptions, name?: string): Promise<RouteFileInterface>; private static parseFIT; private static isFITCourse; private static getRouteRecords; private static getPointsFromRecords; private static addRouteStreams; private static addRouteSummaryStats; private static addSummaryStat; private static getSummaryValue; private static getAggregateSummaryObject; private static getFinalRecordDistanceSummary; private static getObjectRecord; private static getWaypointsFromCoursePoints; private static getWaypointFromCoursePoint; private static getNearestRoutePointIndex; private static getNearestRoutePointIndexByPosition; private static getNearestRoutePointIndexByDistance; private static getCreator; private static getCourseName; private static getActivityType; private static getRouteMetadata; private static getCreatedAt; private static getDate; private static getRecordAltitude; private static isFiniteNumber; private static toArray; }