SegmentReference constructor

SegmentReference([
  1. String segmentId = "",
  2. TravelDirection travelDirection = TravelDirection.bidirectional,
  3. double offsetStart = 0.0,
  4. double offsetEnd = 1.0,
  5. int tilePartitionId = 0,
  6. int? localId = 0,
])

Creates a new instance.

  • segmentId Topology segment id representing a unique identifier within the HERE platform catalogs.
  • travelDirection Travel direction of the segment.
  • offsetStart The start offset is a non-negative number between 0 and 1, representing the start of the referenced range using a proportion of the length of the segment. 0 represents the start and 1 the end of the segment, relative to the indicated direction (or positive direction in case of undirected segments)
  • offsetEnd The end offset is a non-negative number between 0 and 1, representing the end of the referenced range using a proportion of the length of the segment. 0 represents the start and 1 the end of the segment, relative to the indicated direction (or positive direction in case of undirected segments)
  • tilePartitionId HERE tile partition id (Morton-encoding + level indicator) of the segment. As in HERE Map Content.
  • localId Local ID of the segment inside the OCM tile.

Implementation

SegmentReference([String segmentId = "", TravelDirection travelDirection = TravelDirection.bidirectional, double offsetStart = 0.0, double offsetEnd = 1.0, int tilePartitionId = 0, int? localId = 0])
  : segmentId = segmentId, travelDirection = travelDirection, offsetStart = offsetStart, offsetEnd = offsetEnd, tilePartitionId = tilePartitionId, localId = localId;