CustomPoiProvider

class CustomPoiProvider(val name: String)

Enables injection of custom search POI data to the search engine.

Important: This is a Public Preview API. It may be changed or removed at any time.

Constructors

Link copied to clipboard
constructor(name: String)

Properties

Link copied to clipboard

The name of the custom POI data provider. It is required to use a unique name for each provider. The name is used to identify the provider. The CustomPoi.id in combination with the provider name uniquely identifies a custom POI. It is recommended to use reverse domain name notation for the provider name.

Functions

Link copied to clipboard
fun setCustomPois(customPois: Set<CustomPoi>)

Sets the custom POIs for this CustomPoiProvider by replacing the existing custom POIs with the specified collection.