RailwayCrossingWarning
public struct RailwayCrossingWarning : Hashable
A struct that provides railway crossing. The main field describing the railway crossing is RailwayCrossingWarning.type specifying
whether the railway crossing is protected by a barrier or not.
Use RailwayCrossingWarningListener to get notifications about upcoming railway crossings.
-
Distance to the railway crossing in meters.
Declaration
Swift
public var distanceToRailwayCrossingInMeters: Double -
Type of railway crossing, specifying whether it is protected by a barrier or not.
Declaration
Swift
public var type: RouteRailwayCrossingType -
The distance type for the warning, e.g. a warning for a new railway crossing ahead or a warning for passing a railway crossing.
Declaration
Swift
public var distanceType: DistanceType -
The reference to the segment where the railway crossing is located. It can be used to identify the location.
Declaration
Swift
public var segmentReference: SegmentReference -
Creates a new instance.
Declaration
Swift
public init(distanceToRailwayCrossingInMeters: Double, type: RouteRailwayCrossingType = RouteRailwayCrossingType.unknown, distanceType: DistanceType, segmentReference: SegmentReference)