Class ElectronicHorizonSegment

java.lang.Object
com.here.sdk.electronichorizon.ElectronicHorizonSegment

public final class ElectronicHorizonSegment extends Object

Represents a segment in an ElectronicHorizonPath.

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

    • segmentId

      @NonNull public ElectronicHorizonSegmentId segmentId

      The unique identifier of the segment.

    • parentPathIndex

      public int parentPathIndex

      The index of the parent path.

    • startOffsetInMeters

      public double startOffsetInMeters

      The start offset from the beginning of the most preferred path in meters.

    • endOffsetInMeters

      public double endOffsetInMeters

      The end offset from the beginning of the most preferred path in meters.

    • sidePathIndexes

      @NonNull public List<Integer> sidePathIndexes

      The list of indexes of the paths that branch off at the end of this segment. The list can be empty when no side paths branch off at this segment.

  • Constructor Details

    • ElectronicHorizonSegment

      public ElectronicHorizonSegment(@NonNull ElectronicHorizonSegmentId segmentId, int parentPathIndex, double startOffsetInMeters, double endOffsetInMeters)

      Creates a new instance.

      Offline availability: This property is available online and offline.

      Parameters:
      segmentId -

      The unique identifier of the segment.

      parentPathIndex -

      The index of the parent path.

      startOffsetInMeters -

      The start offset from the beginning of the most preferred path in meters.

      endOffsetInMeters -

      The end offset from the beginning of the most preferred path in meters.

  • Method Details