Initializer

init(distanceRemaining:timeRemaining:)

Creates travel estimates with remaining distance and time.

Declaration

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

Parameters

distance

The remaining distance for the travel estimate.

time

The remaining time for the travel estimate.

Return Value

A newly initialized travel estimates object.