CustomPOIProvider

final public class CustomPOIProvider

Allows injecting custom POI data into the search engine.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Creates a new CustomPOIProvider.

    Declaration

    Swift

    public init(name: String)

    Parameters

    name

    a name that uniquely identifies a custom POI provider.

  • 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.

    Declaration

    Swift

    public let name: String
  • A collection of CustomPOI to be used as a data source. for the search service.

    Declaration

    Swift

    public var records: [CustomPOI]