sdk-search / com.tomtom.online.sdk.search.data.common / RelatedPoi

RelatedPoi

open class RelatedPoi : Serializable

A RelatedPoi represents a Point Of Interest related to another one, which means being physically part of it.

Constructors

<init>

RelatedPoi(id: String!, relationType: PoiRelationType!)

Default constructor for the RelatedPoi.

RelatedPoi()

Empty constructor for the RelatedPoi.

Properties

id

var id: String!

Id of the related Point Of Interest. Pass this as entityId to the Place by ID service to fetch additional data for the Point Of Interest.

relationType

var relationType: PoiRelationType!

The type of relation.

Functions

getId

open fun getId(): String!

Returns the Id of the related Point Of Interest.

getRelationType

open fun getRelationType(): PoiRelationType!

Returns the type of a relation.

toString

open fun toString(): String