RailwayCrossing
public struct RailwayCrossing
Identifies the presence and the location of railway corssings.
Included in SegmentData only if SegmentDataLoaderOptions.loadRailwayCrossings is set to true.
-
The start offset, in meters, from the beginning of the segment.
If
RailwayCrossing.endOffsetInMeters= 0, thenRailwayCrossing.startOffsetInMetersapproximately indicates a middle of a railway crossing. IfRailwayCrossing.endOffsetInMeters> 0, it means crossing consists of several rails, andRailwayCrossing.startOffsetInMetersandRailwayCrossing.endOffsetInMetersindicates starting and ending points of the crossing respectively. Default value is 0.Declaration
Swift
public var startOffsetInMeters: Int32 -
The end offset, in meters, from the beginning of the segment. Could be 0. See
RailwayCrossing.startOffsetInMetersdescription. Default value is 0.Declaration
Swift
public var endOffsetInMeters: Int32 -
The type of barrier presented by the railway crossing.
Declaration
Swift
public var railwayCrossingType: RailwayCrossingType -
Creates a new instance.
Parameters
- startOffsetInMeters: The start offset, in meters, from the beginning of the segment.
If
RailwayCrossing.endOffsetInMeters= 0, thenRailwayCrossing.startOffsetInMetersapproximately indicates a middle of a railway crossing. IfRailwayCrossing.endOffsetInMeters> 0, it means crossing consists of several rails, andRailwayCrossing.startOffsetInMetersandRailwayCrossing.endOffsetInMetersindicates starting and ending points of the crossing respectively. Default value is 0.- endOffsetInMeters: The end offset, in meters, from the beginning of the segment.
Could be 0. See
RailwayCrossing.startOffsetInMetersdescription. Default value is 0. - railwayCrossingType: The type of barrier presented by the railway crossing.
Declaration
Swift
public init(startOffsetInMeters: Int32 = 0, endOffsetInMeters: Int32 = 0, railwayCrossingType: RailwayCrossingType)