---
title: "updateEstimates(_:for:)"
framework: carplay
role: symbol
role_heading: Instance Method
path: "carplay/cpmaptemplate/updateestimates(_:for:)"
---

# updateEstimates(_:for:)

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

## Declaration

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

## Parameters

- `estimates`: The updated travel estimates.
- `trip`: A trip preview or the active trip.

## Discussion

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

- [update(_:for:with:)](carplay/cpmaptemplate/update(_:for:with:).md)
- [CPTimeRemainingColor](carplay/cptimeremainingcolor.md)
- [tripEstimateStyle](carplay/cpmaptemplate/tripestimatestyle.md)
- [CPTripEstimateStyle](carplay/cptripestimatestyle.md)
