SafetyCameraWarning constructor
- double distanceToCameraInMeters,
- double speedLimitInMetersPerSecond,
- SafetyCameraType type,
- DistanceType distanceType,
Creates a new instance.
distanceToCameraInMetersDistance to the safety camera in meters.speedLimitInMetersPerSecondThe speed limit observed by the safety camera.typeThe type of the safety camera element.distanceTypeThe 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);