finish gpx parsing

This commit is contained in:
vcoppe
2024-04-16 09:54:41 +02:00
parent f724467295
commit b0c691b789
12 changed files with 2797 additions and 1340 deletions

View File

@@ -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 = {