PoiId

class PoiId(val id: String, val source: Source)

Class that represents the identifier of a Point Of Interest.

Constructors

Link copied to clipboard
constructor(id: String, source: Source)

create a new PoiId object.

Properties

Link copied to clipboard
val id: String

The identifier of the given POI. Online POI ids (source is Source.Online) are currently not guaranteed to be stable. They are quasi-stable i.e. if a request is made shortly after obtaining an ID, the POI ID is likely to remain unchanged, but it may not always be the case when online server map data is updated.

Link copied to clipboard

Identifies the type of the search service used to retrieve the POI identifier.

Functions

Link copied to clipboard
operator fun component1(): String

Returns the identifier of the given POI.

Link copied to clipboard
operator fun component2(): Source

Returns the type of the search service used to retrieve the POI identifier.

Link copied to clipboard
fun copy(id: String = this.id, source: Source = this.source): PoiId

Creates a copy of this PoiId object.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Checks if this PoiId object is equal to another object.

Link copied to clipboard
open override fun hashCode(): Int

Generates a hash code for this PoiId object.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of this PoiId object.