# PointOfInterestEntity

# PointOfInterestEntity

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity "View this page in Kotlin")\|Java  

<br />

```
public final class PointOfInterestEntity extends Entity
```

<br />

|---|---|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html)                                                                                                  |||
| ↳ | [com.google.android.engage.common.datamodel.Entity](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Entity)                                  ||
|   | ↳ | [com.google.android.engage.travel.datamodel.PointOfInterestEntity](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/PointOfInterestEntity) |

*** ** * ** ***

An object representing a Point of Interest Entity.

## Summary

|                                                                                                                                                                                                                                                                                                                                              ### Nested types                                                                                                                                                                                                                                                                                                                                              |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `public final class `[PointOfInterestEntity.Builder](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder) Builder class for[PointOfInterestEntity](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/PointOfInterestEntity).                                                                                                                                                                                                                                                                                                                                                                                 |
| `@`[IntDef](https://developer.android.com/reference/androidx/annotation/IntDef.html)`(value = [EligibleContentCategory.TYPE_EDUCATION, EligibleContentCategory.TYPE_SPORTS, EligibleContentCategory.TYPE_MOVIES_AND_TV_SHOWS, EligibleContentCategory.TYPE_TRAVEL_AND_LOCAL, EligibleContentCategory.TYPE_MEDICAL])` `@`[Retention](https://developer.android.com/reference/java/lang/annotation/Retention.html)`(value = RetentionPolicy.SOURCE)` `public annotation `[PointOfInterestEntity.EligibleContentCategory](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/PointOfInterestEntity.EligibleContentCategory) Content category of the point of interest entity. |

|                                                                                                               ### Public fields                                                                                                               |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|
| `final `[Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                                                                                   | [actionLinkUri](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/PointOfInterestEntity#actionLinkUri())           |
| `final `[ImmutableList](https://guava.dev/releases/21.0/api/docs/com/google/common/collect/ImmutableList.html)`<`[DisplayTimeWindow](https://developer.android.com/reference/com/google/android/engage/common/datamodel/DisplayTimeWindow)`>` | [displayTimeWindows](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/PointOfInterestEntity#displayTimeWindows()) |
| `final `[Address](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Address)                                                                                                                                 | [location](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/PointOfInterestEntity#location())                     |
| `final `[String](https://developer.android.com/reference/java/lang/String.html)                                                                                                                                                               | [title](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/PointOfInterestEntity#title())                           |

|                                                                                                          ### Public methods                                                                                                           |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                                                                                   | [getActionLinkUri](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/PointOfInterestEntity#getActionLinkUri())`()` Returns the action link uri of the point of Interest entity.                                                      |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[AvailabilityTimeWindow](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AvailabilityTimeWindow)`>`    | [getAvailabilityTimeWindow](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/PointOfInterestEntity#getAvailabilityTimeWindow())`()` Returns availability time window for the point of interest entity.                              |
| [List](https://developer.android.com/reference/java/util/List.html)`<`[Badge](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Badge)`>`                                                            | [getBadgeList](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/PointOfInterestEntity#getBadgeList())`()` Returns the list of badges (image/text) for the point of interest entity. e.g. "7 wonder of the world", "Best trail 2024" |
| [List](https://developer.android.com/reference/java/util/List.html)`<`[Integer](https://developer.android.com/reference/java/lang/Integer.html)`>`                                                                                    | [getContentCategoryList](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/PointOfInterestEntity#getContentCategoryList())`()` Returns content categories of the point of interest entity.                                           |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                                                                | [getDescription](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/PointOfInterestEntity#getDescription())`()` Returns the description (typically a single paragraph of text) for the point of interest entity.                      |
| [ImmutableList](https://guava.dev/releases/21.0/api/docs/com/google/common/collect/ImmutableList.html)`<`[DisplayTimeWindow](https://developer.android.com/reference/com/google/android/engage/common/datamodel/DisplayTimeWindow)`>` | [getDisplayTimeWindows](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/PointOfInterestEntity#getDisplayTimeWindows())`()` Returns the display time windows associated with the point of interest entity.                          |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                                                                | [getEntityId](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/PointOfInterestEntity#getEntityId())`()` Returns the id of the entity.                                                                                               |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Instant](https://developer.android.com/reference/org/joda/time/Instant)`>`                                                               | [getLastEngagementTime](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/PointOfInterestEntity#getLastEngagementTime())`()` Returns last engagement time for the point of interest entity.                                          |
| [Address](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Address)                                                                                                                                 | [getLocation](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/PointOfInterestEntity#getLocation())`()` Returns the location/address of the point of interest entity.                                                               |
| [List](https://developer.android.com/reference/java/util/List.html)`<`[Image](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Image)`>`                                                            | [getPosterImages](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/PointOfInterestEntity#getPosterImages())`()` Returns the poster image of the entity.                                                                             |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Price](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Price)`>`                                      | [getPrice](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/PointOfInterestEntity#getPrice())`()` Returns the price of the point of interest entity.                                                                                |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                                                                | [getPriceCallout](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/PointOfInterestEntity#getPriceCallout())`()` Returns the price callout for the point of interest entity. e.g. "Limited offer"                                    |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Rating](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Rating)`>`                                    | [getRating](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/PointOfInterestEntity#getRating())`()` Returns the rating of the point of interest entity.                                                                             |
| [List](https://developer.android.com/reference/java/util/List.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                                                                                      | [getSubtitleList](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/PointOfInterestEntity#getSubtitleList())`()` Returns the list of subtitles for the point of interest entity. e.g. "Trail length", "Elev.                         |
| [String](https://developer.android.com/reference/java/lang/String.html)                                                                                                                                                               | [getTitle](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/PointOfInterestEntity#getTitle())`()` Returns the title of the point of interest entity.                                                                                |

|                                                                                                                                                                                                          ### Inherited methods                                                                                                                                                                                                           |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[com.google.android.engage.common.datamodel.Entity](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Entity) |-------|--------------------------------------------------------------------------------------------------------------------------------| | `int` | [getEntityType](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Entity#getEntityType())`()` | |

## Public fields

### actionLinkUri

```
public final Uri actionLinkUri
```  

### displayTimeWindows

```
public final ImmutableList<DisplayTimeWindow> displayTimeWindows
```  

### location

```
public final Address location
```  

### title

```
public final String title
```  

## Public methods

### getActionLinkUri

```
public Uri getActionLinkUri()
```

Returns the action link uri of the point of Interest entity.  

### getAvailabilityTimeWindow

```
public Optional<AvailabilityTimeWindow> getAvailabilityTimeWindow()
```

Returns availability time window for the point of interest entity.

This can refer to time the pointOfInterest entity is opened for the day/dates between which the point of interest is available.  

### getBadgeList

```
public List<Badge> getBadgeList()
```

Returns the list of badges (image/text) for the point of interest entity. e.g. "7 wonder of the world", "Best trail 2024"  

### getContentCategoryList

```
public List<Integer> getContentCategoryList()
```

Returns content categories of the point of interest entity.  

### getDescription

```
public Optional<String> getDescription()
```

Returns the description (typically a single paragraph of text) for the point of interest entity.  

### getDisplayTimeWindows

```
public ImmutableList<DisplayTimeWindow> getDisplayTimeWindows()
```

Returns the display time windows associated with the point of interest entity.  

### getEntityId

```
public Optional<String> getEntityId()
```

Returns the id of the entity.  

### getLastEngagementTime

```
public Optional<Instant> getLastEngagementTime()
```

Returns last engagement time for the point of interest entity.

Optional.  

### getLocation

```
public Address getLocation()
```

Returns the location/address of the point of interest entity.  

### getPosterImages

```
public List<Image> getPosterImages()
```

Returns the poster image of the entity.  

### getPrice

```
public Optional<Price> getPrice()
```

Returns the price of the point of interest entity.  

### getPriceCallout

```
public Optional<String> getPriceCallout()
```

Returns the price callout for the point of interest entity. e.g. "Limited offer"  

### getRating

```
public Optional<Rating> getRating()
```

Returns the rating of the point of interest entity.  

### getSubtitleList

```
public List<String> getSubtitleList()
```

Returns the list of subtitles for the point of interest entity. e.g. "Trail length", "Elev. Gain", "Duration", "Difficulty level", "Day trips", "Safari", etc.  

### getTitle

```
public String getTitle()
```

Returns the title of the point of interest entity.