RouteOffset class

Represents a specific location along the route.

A RouteOffset is a location on the route defined by the section index and the distance in meters from the start of that section to the specified location on the route. An offset in meters indicates the distance that needs to be traveled to reach a specific location along the route, such as a railway crossing. For the latter case, the location of a railway crossing can be retrieved from RouteRailwayCrossing.coordinates.

Constructors

RouteOffset(int sectionIndex, double offsetInMeters)
Creates a new instance.

Properties

hashCode → int
The hash code for this object.
no setterinherited
offsetInMeters ↔ double
Offset from the start of the indexed Section to the specified location along the route. The maximum possible offset is limited by the length of the section and cannot exceed it.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sectionIndex ↔ int
Index of the corresponding route Section. The start of the section indicates the start of the offset.
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.
inherited