Instance Method

updateTravelEstimates:forTrip:

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

Declaration

- (void)updateTravelEstimates:(CPTravelEstimates *)estimates forTrip:(CPTrip *)trip;

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 updateTravelEstimates:forTrip:withTimeRemainingColor: method instead of calling this method.

See Also

Providing Trip Estimates

- updateTravelEstimates:forTrip:withTimeRemainingColor:

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

CPTimeRemainingColor

The color the system uses when displaying the time remaining for a trip.

tripEstimateStyle

The style that the map template uses when displaying trip estimates during active nagivation.

CPTripEstimateStyle

The set of display styles for trip estimates.