RouteProgress
public struct RouteProgress : Hashable
Contains all the relevant information on the user’s progress along a route.
-
Index of the
Sectionin the route. Note that this section index does not point to the currentSectionProgressbut to the routeSectionthat you can access viarouteandRoute.sections.Declaration
Swift
@available(*, deprecated, message: "Will be removed in v4.27.0. Use `RouteProgress.routeMatchedLocation` instead.") public var sectionIndex: Int32 -
Index of the
Spanin the route section.Declaration
Swift
@available(*, deprecated, message: "Will be removed in v4.27.0. Use `RouteProgress.routeMatchedLocation` instead.") public var spanIndex: Int32 -
The progress for each
Sectionfrom the current one to the last one. Note that the progress information is accumulated successively, therefore information relative to the final destination is in the last item of the list. The list is guaranteed to be non-empty.Declaration
Swift
public var sectionProgress: [SectionProgress] -
The progress for next and next-next maneuvers (see
Maneuver). Note that the list can contain at maximum two items (for next and next-next maneuvers) and one or zero when approaching the destination.Declaration
Swift
public var maneuverProgress: [ManeuverProgress] -
Route matched location.
Declaration
Swift
public var routeMatchedLocation: RouteMatchedLocation -
Creates a new instance.
Declaration
Swift
public init(sectionProgress: [SectionProgress], maneuverProgress: [ManeuverProgress], routeMatchedLocation: RouteMatchedLocation = RouteMatchedLocation()) -
Creates a new instance.
Declaration
Swift
@available(*, deprecated) public init(sectionIndex: Int32 = 0, spanIndex: Int32 = 0, sectionProgress: [SectionProgress], maneuverProgress: [ManeuverProgress], routeMatchedLocation: RouteMatchedLocation = RouteMatchedLocation())