SafetyCameraWarning constructor

SafetyCameraWarning(
  1. double distanceToCameraInMeters,
  2. double speedLimitInMetersPerSecond,
  3. SafetyCameraType type,
  4. DistanceType distanceType,
)

Creates a new instance.

  • distanceToCameraInMeters Distance to the safety camera in meters.
  • speedLimitInMetersPerSecond The speed limit observed by the safety camera.
  • type The type of the safety camera element.
  • distanceType The distance type of the warning (e.g.: warning for a new safety camera ahead, warning for passing a safety camera). Since the safety camera warning is given relative to a single position on the route, DistanceType.reached will never be given for this warning.

Implementation

SafetyCameraWarning(this.distanceToCameraInMeters, this.speedLimitInMetersPerSecond, this.type, this.distanceType);