SegmentReference class

Reference to a segment id with a travel direction.

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.

Constructors

SegmentReference([String segmentId = "", TravelDirection travelDirection = TravelDirection.bidirectional, double offsetStart = 0.0, double offsetEnd = 1.0, int tilePartitionId = 0, int? localId = 0])
Creates a new instance.
SegmentReference.withDefaults()
Creates a new instance.

Properties

hashCode → int
The hash code for this object.
no setter
localId ↔ int?
Local ID of the segment inside the OCM tile.
getter/setter pair
offsetEnd ↔ double
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)
getter/setter pair
offsetStart ↔ double
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)
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
segmentId ↔ String
Topology segment id representing a unique identifier within the HERE platform catalogs.
getter/setter pair
tilePartitionId ↔ int
HERE tile partition id (Morton-encoding + level indicator) of the segment. As in HERE Map Content.
getter/setter pair
travelDirection TravelDirection
Travel direction of the segment.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.

Static Methods

fromString(String segmentRef) SegmentReference?
Returns an instance of this struct from a string if it's well-formatted, null otherwise.