<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPPointOfInterestTemplateDelegate/pointOfInterestTemplate(_:didSelectPointOfInterest:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(pl)CPPointOfInterestTemplateDelegate(im)pointOfInterestTemplate:didSelectPointOfInterest:"
  },
  "title" : "pointOfInterestTemplate(_:didSelectPointOfInterest:)"
}
-->

# pointOfInterestTemplate(_:didSelectPointOfInterest:)

Tells the delegate when the user selects a point of interest.

```
optional func pointOfInterestTemplate(_ pointOfInterestTemplate: CPPointOfInterestTemplate, didSelectPointOfInterest pointOfInterest: CPPointOfInterest)
```

## Parameters

`pointOfInterestTemplate`

The template that displays the map that contains the points of interest.

`pointOfInterest`

The point of interest that the user selects.

## Discussion

CarPlay calls this method whenever the user selects a point of interest from the template’s map. The template displays a detail card for the selection, which contains secondary information and optional actions the user can perform.

Use the [`userInfo`](/documentation/CarPlay/CPPointOfInterest/userInfo) property to attach a value that provides additional context for the point of interest. You can then reference that value in your implementation of this method.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)