---
title: "mapTemplateShouldProvideRouteSharing(_:)"
framework: carplay
role: symbol
role_heading: Instance Method
path: "carplay/cpmaptemplatedelegate/maptemplateshouldprovideroutesharing(_:)"
---

# mapTemplateShouldProvideRouteSharing(_:)

Determines if the template should provide route sharing information to the vehicle. Apps that participate in route sharing will donate navigation information to the vehicle including the current route, a list of waypoints, and other metadata that allows the vehicle to track the user’s preferred route to their destination.

## Declaration

```swift
optional func mapTemplateShouldProvideRouteSharing(_ mapTemplate: CPMapTemplate) -> Bool
```

## Return Value

Return Value YES if the template should provide route sharing, otherwise NO
