RoadSignWarning constructor
- @Deprecated("Will be removed in v4.29.0. Use the constructor without deprecated fields instead.")
- int id,
- double distanceToRoadSignInMeters,
- RoadSignType type,
- RoadSignCategory category,
- GeneralWarningRoadSignType generalWarningType,
- bool isPrioritySign,
- List<
RoadSignVehicleType> vehicleTypes, - WeatherType weatherType,
- LocalizedText? signValue,
- LocalizedText? preWarning,
- LocalizedText? duration,
- LocalizedText? validityTime,
- SegmentReference roadSignSegment,
- DistanceType distanceType,
Creates a new instance.
idUnique identifier for this specific road sign 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.distanceToRoadSignInMetersDistance to the road sign in meters.typeType of the road sign.categoryThe main category to which the road sign belongs.generalWarningTypeSpecifies the general warning to which the road sign belongs.isPrioritySignFlag indicating if the road sign is a priority sign.vehicleTypesSpecifies a list of vehicle types for which the road sign is applicable. The list will be empty when the road sign is applicable for all vehicles including cars.weatherTypeSpecifies the weather type for which the sign is applicable. If weather type isWeatherType.UNKNOWN, the sign is actual for all weather types.signValueOptional value visible on the main sign related to specific road sign types, as it is printed on the local road sign.preWarningOptional pre-warning in terms of distance, of the upcoming warning or regulation. The pre-warning information is given as printed on the local road sign.durationOptional length information during which the warning is applicable. Usually, this information is shown on a separate shield below the main shield. For example, a sign may warn on playing children for a length of 100 m, starting from the location of the warning sign. The length information (most likely with units) is given as printed on the local road sign.validityTimeOptional text visible on the supplemental sign indicating specific time(s) at which the road sign is applicable. The time information is given as printed on the local road sign.roadSignSegmentThe reference to the segment where the road sign is located. It can be used to identify the location of the road sign. It allows to compare the road sign location with theMapMatchedLocation.segment_referenceprovided by theNavigableLocationListeneror with the Span.segmentReference available in the Route's Span. By combining it with the geometry of the segment, that can be loaded using SegmentDataLoader, it is possible to identify the road sign's coordinates.distanceTypeThe distance type for the warning, e.g. a warning for a new road sign ahead or a warning for passing a road sign. Since the road sign 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.")
RoadSignWarning(this.id, this.distanceToRoadSignInMeters, this.type, this.category, this.generalWarningType, this.isPrioritySign, this.vehicleTypes, this.weatherType, this.signValue, this.preWarning, this.duration, this.validityTime, this.roadSignSegment, this.distanceType);