mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-09-05 09:52:54 +00:00
support gpx routes by converting them to tracks
This commit is contained in:
@@ -3,6 +3,7 @@ export type GPXFileType = {
|
||||
metadata: Metadata;
|
||||
wpt: WaypointType[];
|
||||
trk: TrackType[];
|
||||
rte: RouteType[];
|
||||
};
|
||||
|
||||
export type GPXFileAttributes = {
|
||||
@@ -38,6 +39,11 @@ export type WaypointType = {
|
||||
link?: Link;
|
||||
sym?: string;
|
||||
type?: string;
|
||||
extensions?: WaypointExtensions;
|
||||
};
|
||||
|
||||
export type WaypointExtensions = {
|
||||
'gpxx:RoutePointExtension'?: RoutePointExtension;
|
||||
};
|
||||
|
||||
export type Coordinates = {
|
||||
@@ -99,4 +105,23 @@ export type Author = {
|
||||
name?: string;
|
||||
email?: string;
|
||||
link?: Link;
|
||||
};
|
||||
};
|
||||
|
||||
export type RouteType = {
|
||||
name?: string;
|
||||
cmt?: string;
|
||||
desc?: string;
|
||||
src?: string;
|
||||
link?: Link;
|
||||
type?: string;
|
||||
extensions?: TrackExtensions;
|
||||
rtept: WaypointType[];
|
||||
}
|
||||
|
||||
export type RoutePointExtension = {
|
||||
'gpxx:rpt'?: GPXXRoutePoint[];
|
||||
}
|
||||
|
||||
export type GPXXRoutePoint = {
|
||||
attributes: Coordinates;
|
||||
}
|
Reference in New Issue
Block a user