SafetyCameraWarning constructor
- @Deprecated("Will be removed in v4.29.0. Use the constructor without deprecated fields instead.")
- int id,
- double distanceToCameraInMeters,
- double speedLimitInMetersPerSecond,
- SafetyCameraType type,
- DistanceType distanceType,
Creates a new instance.
idUnique identifier for this specific safety camera warning instance. Each warning type (truck restrictions, speed warnings, etc.) maintains its own independent ID namespace. Use this ID to track, update, or dismiss individual warning instances of this type.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
@Deprecated("Will be removed in v4.29.0. Use the constructor without deprecated fields instead.")
SafetyCameraWarning(this.id, this.distanceToCameraInMeters, this.speedLimitInMetersPerSecond, this.type, this.distanceType);