mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-09-03 09:12:30 +00:00
60 lines
935 B
TypeScript
60 lines
935 B
TypeScript
![]() |
export type GPXFile = {
|
||
|
creator: string;
|
||
|
metadata: Metadata;
|
||
|
waypoints: Waypoint[];
|
||
|
tracks: Track[];
|
||
|
};
|
||
|
|
||
|
export type Metadata = {
|
||
|
name?: string;
|
||
|
desc?: string;
|
||
|
author?: Author;
|
||
|
link?: Link;
|
||
|
time?: Date;
|
||
|
};
|
||
|
|
||
|
export type Link = {
|
||
|
href: string;
|
||
|
text?: string;
|
||
|
type?: string;
|
||
|
};
|
||
|
|
||
|
export type Waypoint = {
|
||
|
lat: number;
|
||
|
lon: number;
|
||
|
ele?: number;
|
||
|
time?: Date;
|
||
|
name?: string;
|
||
|
cmt?: string;
|
||
|
desc?: string;
|
||
|
link?: Link;
|
||
|
sym?: string;
|
||
|
type?: string;
|
||
|
};
|
||
|
|
||
|
export type Track = {
|
||
|
name?: string;
|
||
|
cmt?: string;
|
||
|
desc?: string;
|
||
|
src?: string;
|
||
|
link?: Link;
|
||
|
type?: string;
|
||
|
trkseg: TrackSegment[];
|
||
|
};
|
||
|
|
||
|
export type TrackSegment = {
|
||
|
trkpt: TrackPoint[];
|
||
|
};
|
||
|
|
||
|
export type TrackPoint = {
|
||
|
lat: number;
|
||
|
lon: number;
|
||
|
ele?: number;
|
||
|
time?: Date;
|
||
|
};
|
||
|
|
||
|
export type Author = {
|
||
|
name?: string;
|
||
|
email?: string;
|
||
|
link?: Link;
|
||
|
};
|