CPContactDirectionsButton
A button for getting directions to the contact’s location.
Declaration
class CPContactDirectionsButtonOverview
Use this button to get directions to the location of the template’s contact.
If your app doesn’t provide turn-by-turn navigation, use the maps URL scheme to launch the most recent navigation app. Call your template application scene’s open(_:options:completionHandler:) method and pass a URL that embeds the contact’s location. CarPlay provides this scene to your CPTemplateApplicationSceneDelegate when the scene connects.