RailwayCrossing (API Reference)
Class RailwayCrossing
Identifies the presence and the location of railway corssings.
Included in SegmentData only if SegmentDataLoaderOptions.loadRailwayCrossings is set to true.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe end offset, in meters, from the beginning of the segment.The type of barrier presented by the railway crossing.intThe start offset, in meters, from the beginning of the segment. -
Constructor Summary
ConstructorsConstructorDescriptionRailwayCrossing(RailwayCrossingType railwayCrossingType) Creates a new instance. -
Method Summary
-
Field Details
-
startOffsetInMeters
public int startOffsetInMetersThe start offset, in meters, from the beginning of the segment.
If
endOffsetInMeters= 0, thenstartOffsetInMetersapproximately indicates a middle of a railway crossing. IfendOffsetInMeters> 0, it means crossing consists of several rails, andstartOffsetInMetersandendOffsetInMetersindicates starting and ending points of the crossing respectively. Default value is 0. -
endOffsetInMeters
public int endOffsetInMetersThe end offset, in meters, from the beginning of the segment. Could be 0. See
startOffsetInMetersdescription. Default value is 0. -
railwayCrossingType
The type of barrier presented by the railway crossing.
-
-
Constructor Details
-
RailwayCrossing
Creates a new instance.
- Parameters:
railwayCrossingType-The type of barrier presented by the railway crossing.
-