RouteProgress
public struct RouteProgress
Represents progress along the route.
-
Creates a new
RouteProgressinstance with the distance along the route and the array of remaining route stop progress.Precondition
The argumentremainingRouteStopsProgressmust contain at least oneRouteStopProgressobject for a destination.Throws
The error caused by a wrong or missing parameter.Declaration
Swift
public init( distanceAlongRoute: Measurement<UnitLength>, remainingRouteStopsProgress: [RouteStopProgress] ) throwsParameters
distanceAlongRouteDistance along the route from the departure to the current location.
remainingRouteStopsProgressArray of individual
RouteStopProgressfor remainingrouteStopsfrom the current location to the destination.
-
Distance along the route from the departure to the current location.
Declaration
Swift
public let distanceAlongRoute: Measurement<UnitLength> -
Array of individual
RouteStopProgressfor remainingrouteStopsfrom the current location to the destination.Declaration
Swift
public let remainingRouteStopsProgress: [RouteStopProgress] -
Remaining delay along the route from the current location to the destination, attributed to traffic congestion.
Declaration
Swift
public var remainingTrafficDelay: Measurement<UnitDuration> { get } -
Estimated remaining travel time from the current location to the destination.
Declaration
Swift
public var remainingTime: Measurement<UnitDuration> { get } -
Remaining distance along the route from the current location to the destination.
Declaration
Swift
public var remainingDistance: Measurement<UnitLength> { get }
TomTom SDK for iOS (0.54.0)
RouteProgress