mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-09-03 09:12:30 +00:00
finish gpx parsing
This commit is contained in:
@@ -40,6 +40,13 @@ export type Track = {
|
||||
link?: Link;
|
||||
type?: string;
|
||||
trkseg: TrackSegment[];
|
||||
style?: TrackStyleExtension;
|
||||
};
|
||||
|
||||
export type TrackStyleExtension = {
|
||||
color?: string;
|
||||
opacity?: number;
|
||||
weight?: number;
|
||||
};
|
||||
|
||||
export type TrackSegment = {
|
||||
@@ -51,6 +58,15 @@ export type TrackPoint = {
|
||||
lon: number;
|
||||
ele?: number;
|
||||
time?: Date;
|
||||
extensions?: TrackPointExtensions;
|
||||
};
|
||||
|
||||
export type TrackPointExtensions = {
|
||||
hr?: number;
|
||||
cad?: number;
|
||||
atemp?: number;
|
||||
power?: number;
|
||||
surface?: string;
|
||||
};
|
||||
|
||||
export type Author = {
|
||||
|
Reference in New Issue
Block a user