<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPMapTemplate/updateEstimates(_:for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(cs)CPMapTemplate(im)updateTravelEstimates:forTrip:"
  },
  "title" : "updateEstimates(_:for:)"
}
-->

# updateEstimates(_:for:)

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

```
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:)`](/documentation/CarPlay/CPMapTemplate/update(_:for:with:)) method instead of calling this method.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)