Contents

updateEstimates(_:for:)

Updates travel estimates, such as arrival time and the remaining time and distance for a trip.

Declaration

func updateEstimates(_ estimates: CPTravelEstimates, for trip: CPTrip)

Parameters

  • estimates:

    The updated travel estimates.

  • trip:

    A trip preview or the active trip.

Discussion

The updated trip uses the default time-remaining color. To change the color, use the update(_:for:with:) method instead of calling this method.

See Also

Providing Trip Estimates