aboutsummaryrefslogtreecommitdiff
blob: cc01cda5021bdaff56c463563601bf85cd6ebd61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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[];
}