RailwayCrossingWarning constructor
- @Deprecated("Will be removed in v4.29.0. Use the constructor without deprecated fields instead.")
- int id,
- double distanceToRailwayCrossingInMeters,
- RouteRailwayCrossingType type,
- DistanceType distanceType,
- SegmentReference segmentReference,
Creates a new instance.
idUnique identifier for this specific railway crossing 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.distanceToRailwayCrossingInMetersDistance to the railway crossing in meters.typeType of railway crossing, specifying whether it is protected by a barrier or not.distanceTypeThe distance type for the warning, e.g. a warning for a new railway crossing ahead or a warning for passing a railway crossing.segmentReferenceThe reference to the segment where the railway crossing is located. It can be used to identify the location.
Implementation
@Deprecated("Will be removed in v4.29.0. Use the constructor without deprecated fields instead.")
RailwayCrossingWarning(this.id, this.distanceToRailwayCrossingInMeters, this.type, this.distanceType, this.segmentReference);