Milestone class
Represents information about the waypoints along the route.
Note that this can include additional waypoints added during route calculation that may not have been part of the original user-defined waypoint list. For example, additional waypoints are added automatically between sections that require a different transport mode like when taking a ferry.
Constructors
- Milestone.withType(int sectionIndex, int? waypointIndex, GeoCoordinates? originalCoordinates, GeoCoordinates mapMatchedCoordinates, MilestoneType type)
- Creates a new instance.
Properties
- hashCode → int
-
The hash code for this object.
no setter
- mapMatchedCoordinates ↔ GeoCoordinates
-
Map-matched geographic coordinates.
getter/setter pair
- originalCoordinates ↔ GeoCoordinates?
-
User-defined geographic coordinates. If not available, this waypoint was
added during route calculation.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sectionIndex ↔ int
-
Index of the section on the route.
getter/setter pair
- type ↔ MilestoneType
-
Type of this Milestone
getter/setter pair
- waypointIndex ↔ int?
-
If present, this index corresponds to the waypoint in the original
user-defined waypoint list. Otherwise this waypoint was added during
route calculation by the system.
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.