mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-09-03 09:12:30 +00:00
gpx file class with first operation
This commit is contained in:
@@ -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[];
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user