Milestone
public struct Milestone : Hashable
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.
-
Index of the section on the route.
Declaration
Swift
public var sectionIndex: Int32 -
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.
Declaration
Swift
public var waypointIndex: Int32? -
User-defined geographic coordinates. If not available, this waypoint was added during route calculation.
Declaration
Swift
public var originalCoordinates: GeoCoordinates? -
Map-matched geographic coordinates.
Declaration
Swift
public var mapMatchedCoordinates: GeoCoordinates -
Type of this Milestone
Declaration
Swift
public var type: MilestoneType -
Creates a new instance.
Declaration
Swift
public init(sectionIndex: Int32, waypointIndex: Int32? = nil, originalCoordinates: GeoCoordinates? = nil, mapMatchedCoordinates: GeoCoordinates, type: MilestoneType = MilestoneType.stopover)