PointOfInterestEntity

public final class PointOfInterestEntity extends Entity


An object representing a Point of Interest Entity.

Summary

Nested types

Builder class for PointOfInterestEntity.

@IntDef(value = [EligibleContentCategory.TYPE_EDUCATION, EligibleContentCategory.TYPE_SPORTS, EligibleContentCategory.TYPE_MOVIES_AND_TV_SHOWS, EligibleContentCategory.TYPE_TRAVEL_AND_LOCAL, EligibleContentCategory.TYPE_MEDICAL])
@Retention(value = RetentionPolicy.SOURCE)
public annotation PointOfInterestEntity.EligibleContentCategory

Content category of the point of interest entity.

Public fields

final Uri
final Address
final String

Public methods

Uri

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

Optional<AvailabilityTimeWindow>

Returns availability time window for the point of interest entity.

List<Badge>

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

List<Integer>

Returns content categories of the point of interest entity.

Optional<String>

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

Optional<String>

Returns the id of the entity.

Address

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

List<Image>

Returns the poster image of the entity.

Optional<Price>

Returns the price of the point of interest entity.

Optional<String>

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

Optional<Rating>

Returns the rating of the point of interest entity.

List<String>

Returns the list of subtitles for the point of interest entity. e.g. "Trail length", "Elev.

String

Returns the title of the point of interest entity.

Public fields

actionLinkUri

public final Uri actionLinkUri

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<AvailabilityTimeWindowgetAvailabilityTimeWindow()

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<BadgegetBadgeList()

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<IntegergetContentCategoryList()

Returns content categories of the point of interest entity.

getDescription

public Optional<StringgetDescription()

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

getEntityId

public Optional<StringgetEntityId()

Returns the id of the entity.

getLocation

public Address getLocation()

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

getPosterImages

public List<ImagegetPosterImages()

Returns the poster image of the entity.

getPrice

public Optional<PricegetPrice()

Returns the price of the point of interest entity.

getPriceCallout

public Optional<StringgetPriceCallout()

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

getRating

public Optional<RatinggetRating()

Returns the rating of the point of interest entity.

getSubtitleList

public List<StringgetSubtitleList()

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.