RouteStopProgress
public struct RouteStopProgress
Represents current progress along the route till given TomTomSDKRoute/RouteStop
.
Creates an instance of TomTomSDKNavigationEngines/RouteStopProgress
.
Declaration
Swift
public init(
routeStopID: UUID,
remainingTime: Measurement<UnitDuration>,
remainingDistance: Measurement<UnitLength>
)
Parameters
routeStopID
|
A unique identifier of the corresponding route stop. |
remainingTime
|
Estimated remaining travel time from current location till |
remainingDistance
|
Remaining distance along the route from current location till |
Creates an instance of TomTomSDKNavigationEngines/RouteStopProgress
.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public init(
routeStopID: UUID,
remainingTime: Measurement<UnitDuration>,
remainingDistance: Measurement<UnitLength>,
remainingTrafficDelay: Measurement<UnitDuration> = .tt.seconds(0)
)
Parameters
routeStopID
|
A unique identifier of the corresponding route stop. |
remainingTime
|
Estimated remaining travel time from current location till |
remainingDistance
|
Remaining distance along the route from current location till |
remainingTrafficDelay
|
Remaining delay along the route from the current location to the |
Remaining distance along the route from current location till TomTomSDKRoute/RouteStop
.
Declaration
Swift
public let remainingDistance: Measurement<UnitLength>
Estimated remaining travel time from current location till TomTomSDKRoute/RouteStop
.
Declaration
Swift
public let remainingTime: Measurement<UnitDuration>
Remaining delay along the route from the current location to the TomTomSDKRoute/RouteStop
, attributed to traffic congestion.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public let remainingTrafficDelay: Measurement<UnitDuration>
A unique identifier of the corresponding route stop.
Declaration
Swift
public let routeStopID: UUID