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

43 lines (42 loc) 1.28 kB
export interface RouteParsingStreamOptions { smooth?: { altitudeSmooth?: boolean; grade?: boolean; gradeSmooth?: boolean; }; /** * Optional allowlist of point-indexed stream types to include in final route output. */ includeTypes?: string[]; } export interface RouteParsingGPXOptions { /** * Treat timed GPX tracks as route geometry. * * Defaults to false because GPX tracks with per-point time values usually represent * completed activities. Route upload flows can opt in when the user explicitly wants * to turn activity track geometry into a reusable route. */ importTimedTracksAsRoutes?: boolean; } export interface RouteParsingOptionsInput { streams?: RouteParsingStreamOptions; gpx?: RouteParsingGPXOptions; generateUnitStreams?: boolean; } export declare class RouteParsingOptions { static readonly DEFAULT: RouteParsingOptions; streams: { smooth: { altitudeSmooth?: boolean; grade?: boolean; gradeSmooth?: boolean; }; includeTypes?: string[]; }; gpx: { importTimedTracksAsRoutes: boolean; }; generateUnitStreams: boolean; constructor(options?: RouteParsingOptionsInput); }