---
title: "mapTemplate(_:didShareDestinationFor:)"
framework: carplay
role: symbol
role_heading: Instance Method
path: "carplay/cpmaptemplatedelegate/maptemplate(_:didsharedestinationfor:)"
---

# mapTemplate(_:didShareDestinationFor:)

Called when a vehicle successfully handled a shared trip’s destination

## Declaration

```swift
optional func mapTemplate(_ mapTemplate: CPMapTemplate, didShareDestinationFor trip: CPTrip)
```
