---
title: "mapTemplate(_:didFailToShareDestinationFor:error:)"
framework: carplay
role: symbol
role_heading: Instance Method
path: "carplay/cpmaptemplatedelegate/maptemplate(_:didfailtosharedestinationfor:error:)"
---

# mapTemplate(_:didFailToShareDestinationFor:error:)

Called when a vehicle failed to handle a shared trip’s destination

## Declaration

```swift
optional func mapTemplate(_ mapTemplate: CPMapTemplate, didFailToShareDestinationFor trip: CPTrip, error: any Error)
```
