---
title: CPPointOfInterest
framework: carplay
role: symbol
role_heading: Class
path: carplay/cppointofinterest
---

# CPPointOfInterest

An object that describes a point of interest on the template’s map and in its scrollable picker.

## Declaration

```swift
class CPPointOfInterest
```

## Overview

Overview A point of interest describes a geographical location on a map. It also provides supplementary information about the location, such as a title and summary that the template displays in a scrollable picker and on a detail card. A point of interest also provides the buttons the detail card presents to the user as contextual actions. You provide an array of CPPointOfInterest objects when initializing CPPointOfInterestTemplate, or whenever the visible region of the template’s map changes, by calling the template’s setPointsOfInterest(_:selectedIndex:) method. CPPointOfInterestTemplate displays a maximum of twelve points of interest.

## Topics

### Creating a Point of Interest

- [init(location:title:subtitle:summary:detailTitle:detailSubtitle:detailSummary:pinImage:)](carplay/cppointofinterest/init(location:title:subtitle:summary:detailtitle:detailsubtitle:detailsummary:pinimage:).md)

### Managing the Map Annotation

- [location](carplay/cppointofinterest/location.md)
- [pinImage](carplay/cppointofinterest/pinimage.md)

### Managing the Picker Item’s Data

- [title](carplay/cppointofinterest/title.md)
- [subtitle](carplay/cppointofinterest/subtitle.md)
- [summary](carplay/cppointofinterest/summary.md)

### Managing the Detail Card’s Data

- [detailTitle](carplay/cppointofinterest/detailtitle.md)
- [detailSubtitle](carplay/cppointofinterest/detailsubtitle.md)
- [detailSummary](carplay/cppointofinterest/detailsummary.md)

### Managing the Detail Card’s Buttons

- [primaryButton](carplay/cppointofinterest/primarybutton.md)
- [secondaryButton](carplay/cppointofinterest/secondarybutton.md)

### Attaching Additional Context

- [userInfo](carplay/cppointofinterest/userinfo.md)

### Initializers

- [init(location:title:subtitle:summary:detailTitle:detailSubtitle:detailSummary:pinImage:selectedPinImage:)](carplay/cppointofinterest/init(location:title:subtitle:summary:detailtitle:detailsubtitle:detailsummary:pinimage:selectedpinimage:).md)
- [init(coder:)](carplay/cppointofinterest/init(coder:).md)

### Instance Properties

- [selectedPinImage](carplay/cppointofinterest/selectedpinimage.md)

### Type Properties

- [pinImageSize](carplay/cppointofinterest/pinimagesize.md)
- [selectedPinImageSize](carplay/cppointofinterest/selectedpinimagesize.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Creating a Point of Interest Template

- [init(title:pointsOfInterest:selectedIndex:)](carplay/cppointofinteresttemplate/init(title:pointsofinterest:selectedindex:).md)
