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

27 lines (26 loc) 1.29 kB
import { CreatorInterface } from '../creators/creator.interface'; import { FileType } from '../events/adapters/file-type.enum'; import { StatsClassAbstract } from '../stats/stats.class.abstract'; import { RouteFileJSONInterface } from './route-file.json.interface'; import { RouteFileInterface } from './route-file.interface'; import { RouteInterface } from './route.interface'; import { RouteWaypointInterface } from './route-point.interface'; export declare class RouteFile extends StatsClassAbstract implements RouteFileInterface { name: string; srcFileType: FileType | string; createdAt: Date | null; creator: CreatorInterface; private routes; private waypoints; constructor(name?: string, srcFileType?: FileType | string, creator?: CreatorInterface, routes?: RouteInterface[], waypoints?: RouteWaypointInterface[], createdAt?: Date | null); addRoute(route: RouteInterface): this; addRoutes(routes: RouteInterface[]): this; clearRoutes(): this; getRoutes(): RouteInterface[]; getFirstRoute(): RouteInterface; hasRoutes(): boolean; addWaypoint(waypoint: RouteWaypointInterface): this; addWaypoints(waypoints: RouteWaypointInterface[]): this; getWaypoints(): RouteWaypointInterface[]; toJSON(): RouteFileJSONInterface; }