Contents

init(distanceRemaining:distanceRemainingToDisplay:timeRemaining:)

Creates a travel estimates instance with the distance remaining that the framework displays to a person.

Declaration

init(distanceRemaining: Measurement<UnitLength>, distanceRemainingToDisplay: Measurement<UnitLength>, timeRemaining time: TimeInterval)

Parameters

  • distanceRemaining:

    The distance remaining in Measurement units. distanceRemainingToDisplay: the disance remaining to dfisk to a person, in Measurement units. time: `TimeInterval

Return Value

A newly initialized travel estimates object.

Discussion

If not set, falls back to distanceRemaining.

See Also

Creating a Travel Estimates Object