adds trail export

This commit is contained in:
Christian Beutel
2024-05-05 15:46:17 +02:00
parent 930feda4d6
commit 756a9fa79f
18 changed files with 310 additions and 31 deletions

View File

@@ -8,7 +8,7 @@ export default class Metadata {
desc: string;
time: Date;
keywords: string;
extensions: string;
extensions?: string;
author?: Person;
link?: Link[];
bounds?: Bounds;
@@ -18,7 +18,7 @@ export default class Metadata {
desc: string,
time: string,
keywords: string,
extensions: string,
extensions?: string,
author?: Person,
link?: Link | Link[],
bounds?: Bounds,

View File

@@ -61,7 +61,7 @@ class Trail {
this.id = params?.id;
this.name = name;
this.location = params?.location;
this.date = params?.date;
this.date = params?.date ?? new Date().toISOString().split('T')[0];
this.public = params?.public ?? false
this.distance = params?.distance;
this.elevation_gain = params?.elevation_gain;