gpx file class with first operation

This commit is contained in:
vcoppe
2024-04-16 13:54:48 +02:00
parent b5eebacc02
commit c1d27b1488
7 changed files with 4302 additions and 3831 deletions

View File

@@ -1,8 +1,8 @@
export type GPXFile = {
export type GPXFileType = {
attributes: GPXFileAttributes;
metadata: Metadata;
wpt: Waypoint[];
trk: Track[];
trk: TrackType[];
};
export type GPXFileAttributes = {
@@ -45,14 +45,14 @@ export type Coordinates = {
lon: number;
};
export type Track = {
export type TrackType = {
name?: string;
cmt?: string;
desc?: string;
src?: string;
link?: Link;
type?: string;
trkseg: TrackSegment[];
trkseg: TrackSegmentType[];
extensions?: TrackExtensions;
};
@@ -66,7 +66,7 @@ export type LineStyleExtension = {
weight?: number;
};
export type TrackSegment = {
export type TrackSegmentType = {
trkpt: TrackPoint[];
};