RailwayCrossingWarning (API Reference)
Package com.here.sdk.navigation
Class RailwayCrossingWarning
java.lang.Object
com.here.sdk.navigation.RailwayCrossingWarning
A class 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.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleDistance to the railway crossing in meters.The distance type for the warning, e.g.The reference to the segment where the railway crossing is located.Type of railway crossing, specifying whether it is protected by a barrier or not. -
Constructor Summary
ConstructorsConstructorDescriptionRailwayCrossingWarning(double distanceToRailwayCrossingInMeters, DistanceType distanceType, SegmentReference segmentReference) Creates a new instance. -
Method Summary
-
Field Details
-
distanceToRailwayCrossingInMeters
public double distanceToRailwayCrossingInMetersDistance to the railway crossing in meters.
-
type
Type of railway crossing, specifying whether it is protected by a barrier or not.
-
distanceType
The distance type for the warning, e.g. a warning for a new railway crossing ahead or a warning for passing a railway crossing.
-
segmentReference
The reference to the segment where the railway crossing is located. It can be used to identify the location.
-
-
Constructor Details
-
Method Details