TimeDistanceCoordinate constructor

TimeDistanceCoordinate({
  1. required Coordinates coords,
  2. int distance = 0,
  3. int stamp = 0,
})

Creates a new time-distance-coordinate object.

The API user typically does not create instances directly.

Parameters

  • coords: WGS coordinates (latitude/longitude, optional altitude).
  • distance: Relative distance in meters from an origin point. Defaults to 0.
  • stamp: Timestamp in milliseconds since epoch. Defaults to 0.

Implementation

TimeDistanceCoordinate({
  required this.coords,
  this.distance = 0,
  this.stamp = 0,
});