Class TrafficSignal

java.lang.Object
com.here.sdk.mapdata.TrafficSignal

public final class TrafficSignal extends Object

Identifies the presence and the location of traffic lights at an intersection

Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.

  • Field Details

    • offsetInMeters

      public int offsetInMeters

      The offset of the traffic signal in meters from the beginning of the segment in positive direction.

    • travelDirection

      @NonNull public TravelDirection travelDirection

      Segment direction which the traffic signal is applied.

    • signalLocations

      @NonNull public List<TrafficSignalLocation> signalLocations

      The location information of the traffic lights. An empty list will be returned when signal location is unspecified/unknown.

  • Constructor Details

    • TrafficSignal

      public TrafficSignal(int offsetInMeters, @NonNull TravelDirection travelDirection)

      Creates a new instance.

      Parameters:
      offsetInMeters -

      The offset of the traffic signal in meters from the beginning of the segment in positive direction.

      travelDirection -

      Segment direction which the traffic signal is applied.