PoiElement2

class PoiElement2(val id: Int, val pathId: Int, val startOffset: Distance, val endOffset: Distance, val place: Place, val accessType: PoiElement2.AccessType) : HorizonElement

Horizon element that contains data about a Place of a Point of Interest.

To receive such elements in the horizon snapshot, specify PoiElementType2 in the horizon options that you register with the horizon engine:

val horizonOptions = buildHorizonOptions(
elementTypes = listOf(PoiElementType2, ...),
...
)

Constructors

Link copied to clipboard
constructor(id: Int, pathId: Int, startOffset: Distance, endOffset: Distance, place: Place, accessType: PoiElement2.AccessType)

Types

Link copied to clipboard
value class AccessType

Describes the access type of this POI place.

Properties

Link copied to clipboard

Access type of the POI Place data.

Link copied to clipboard
open override val endOffset: Distance

End offset on the horizon path.

Link copied to clipboard
open override val id: Int

Identifier of this element.

Link copied to clipboard
open override val pathId: Int

Identifier of the horizon path to which this element belongs.

Link copied to clipboard

This property contains specific information about the POI place. Use place.coordinate to get the POI location, place.id to get the POI ID, and place.details to retrieve additional details about the POI.

Link copied to clipboard
open override val startOffset: Distance

Start offset on the horizon path.

Functions

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