StandardPoiFeature

class StandardPoiFeature(id: FeaturesetFeatureId?, importId: String?, originalFeature: Feature, state: StandardPoiState) : FeaturesetFeature<StandardPoiState>

A point of interest.

Typed class of FeaturesetFeature representing StandardPoi coming from Mapbox Standard Style. Allows easy access to Feature properties.

Constructors

Link copied to clipboard
fun StandardPoiFeature(id: FeaturesetFeatureId?, importId: String?, originalFeature: Feature, state: StandardPoiState)

Functions

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

Override equals method.

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

Override hashCode method.

Properties

Link copied to clipboard

A short identifier code of the airport. Expected to be null for non-airport points of interest

Link copied to clipboard

A broad category of point of interest.

Link copied to clipboard

The TypedFeaturesetDescriptor this concrete feature comes from. List of supported featuresets could be found in the nested classes (e.g. TypedFeaturesetDescriptor.Featureset, TypedFeaturesetDescriptor.Layer etc).

Link copied to clipboard
open val geometry: Geometry

Mandatory feature Geometry.

Link copied to clipboard

A high-level point of interest category like airport, transit, etc.

Link copied to clipboard
val id: FeaturesetFeatureId?

Optional identifier holding feature id and feature namespace. It could be NULL when underlying Feature.id is null.

Link copied to clipboard
val maki: String?

An icon identifier, designed to assign icons using the Maki icon project or other icons that follow the same naming scheme.

Link copied to clipboard
val name: String?

Name of the point of interest.

Link copied to clipboard

The feature properties stored in JSONObject.

Link copied to clipboard

Current feature state stored as a concrete instance of FeatureState. Important: this state is immutable and represents the feature state at the precise moment of the interaction callback.

Link copied to clipboard

Mode of transport served by a stop/station. Expected to be null for non-transit points of interest.

Link copied to clipboard

A rail station network identifier that is part of specific local or regional transit systems. Expected to be null for non-transit points of interest.

Link copied to clipboard

A type of transit stop. Expected to be null for non-transit points of interest.