Class RailwayCrossingWarning

java.lang.Object
com.here.sdk.navigation.RailwayCrossingWarning

public final class RailwayCrossingWarning extends Object

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 Details

    • id

      public int id

      Unique 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.

    • distanceToRailwayCrossingInMeters

      @Deprecated public double distanceToRailwayCrossingInMeters
      Deprecated.

      Will be removed in v4.29.0. Use the WarningUpdate implementation instead.

      Distance to the railway crossing in meters.

    • type

      @NonNull public RouteRailwayCrossingType type

      Type of railway crossing, specifying whether it is protected by a barrier or not.

    • distanceType

      @Deprecated @NonNull public DistanceType distanceType
      Deprecated.

      Will be removed in v4.29.0. Use the WarningStatus implementation instead.

      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

      @NonNull public SegmentReference segmentReference

      The reference to the segment where the railway crossing is located. It can be used to identify the location.

  • Constructor Details

    • RailwayCrossingWarning

      @Deprecated public RailwayCrossingWarning(int id, @Deprecated double distanceToRailwayCrossingInMeters, @NonNull RouteRailwayCrossingType type, @Deprecated @NonNull DistanceType distanceType, @NonNull SegmentReference segmentReference)
      Deprecated.

      Will be removed in v4.29.0. Use the constructor without deprecated fields instead.

      Creates a new instance.

      Parameters:
      id -

      Unique 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.

      distanceToRailwayCrossingInMeters -

      Distance 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.

  • Method Details