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 TomTomSDKRoute/RouteStop.

    remainingDistance

    Remaining distance along the route from current location till TomTomSDKRoute/RouteStop.

  • 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 TomTomSDKRoute/RouteStop.

    remainingDistance

    Remaining distance along the route from current location till TomTomSDKRoute/RouteStop.

    remainingTrafficDelay

    Remaining delay along the route from the current location to the TomTomSDKRoute/RouteStop, attributed to traffic congestion. Defaults to .seconds(0).

  • A unique identifier of the corresponding route stop.

    Declaration

    Swift

    public let routeStopID: UUID
  • Estimated remaining travel time from current location till TomTomSDKRoute/RouteStop.

    Declaration

    Swift

    public let remainingTime: Measurement<UnitDuration>
  • Remaining distance along the route from current location till TomTomSDKRoute/RouteStop.

    Declaration

    Swift

    public let remainingDistance: Measurement<UnitLength>
  • 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>