diff options
author | Marcin Zelent <marcin@zelent.net> | 2022-11-16 15:16:38 +0100 |
---|---|---|
committer | Marcin Zelent <marcin@zelent.net> | 2022-11-16 15:16:38 +0100 |
commit | f2ecc1803f3ea294a0c6b7915b61348ed0395b26 (patch) | |
tree | e8c6fb1350ae4f659b3f9ef8d17157158b974b16 /models/Trip.ts | |
parent | efb64f24d6200a39870c0e8966ab4f87e07c93a9 (diff) |
Remade and extended the app using React
Diffstat (limited to 'models/Trip.ts')
-rw-r--r-- | models/Trip.ts | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/models/Trip.ts b/models/Trip.ts deleted file mode 100644 index cc01cda..0000000 --- a/models/Trip.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { GeoJsonObject } from 'geojson'; -import Photo from './Photo'; - -export default interface Trip { - /** - * Name of the trip. - */ - name: string; - - /** - * Total distance made during the trip. - */ - distance: number; - - /** - * Date and time of the beginning of the trip. - * This property is a string because Date is not serializable in Next.js. - */ - start: string; - - /** - * Date and time of the end of the trip. - * This property is a string because Date is not serializable in Next.js. - */ - end: string; - - /** - * Total duration of the trip in seconds. - */ - duration: number; - - /** - * Average speed in km/h. - */ - speed: number; - - /** - * GeoJSON object representing waypoints of the trip - */ - track: GeoJsonObject; - - /** - * Photos taken during the trip. - */ - photos: Photo[]; -} |