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

# mapTemplateShouldProvideNavigationMetadata(_:)

Asks the delegate whether the template should provide navigation metadata

## Declaration

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

## Parameters

- `mapTemplate`: The current map template.

## Discussion

Discussion Returns true if the template needs to provide navigation metadata, otherwise false.

## See Also

### Handling Navigation Events

- [mapTemplate(_:selectedPreviewFor:using:)](carplay/cpmaptemplatedelegate/maptemplate(_:selectedpreviewfor:using:).md)
- [mapTemplate(_:startedTrip:using:)](carplay/cpmaptemplatedelegate/maptemplate(_:startedtrip:using:).md)
- [mapTemplateDidCancelNavigation(_:)](carplay/cpmaptemplatedelegate/maptemplatedidcancelnavigation(_:).md)
