Milestone.withType constructor

Milestone.withType(
  1. int sectionIndex,
  2. int? waypointIndex,
  3. GeoCoordinates? originalCoordinates,
  4. GeoCoordinates mapMatchedCoordinates,
  5. MilestoneType type,
)

Creates a new instance.

  • sectionIndex Index of the section on the route.
  • waypointIndex 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.
  • originalCoordinates User-defined geographic coordinates. If not available, this waypoint was added during route calculation.
  • mapMatchedCoordinates Map-matched geographic coordinates.
  • type Type of this Milestone

Implementation

Milestone.withType(this.sectionIndex, this.waypointIndex, this.originalCoordinates, this.mapMatchedCoordinates, this.type);