CustomPOISearchDataProvider

final public class CustomPOISearchDataProvider : CustomSearchDataProvider

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.

Lifecycle

  • Creates a new CustomPOISearchDataProvider

    Declaration

    Swift

    public init(name: String)

    Parameters

    name

    a data provider name that uniquely identifies a custom data provider

Public

  • RecordType defined as a single custom POI record.

    Declaration

    Swift

    public typealias RecordType = CustomPOIRecord
  • Data provider name. This uniquely identifies a custom data provider. RecordType.id should be unique within a provider. The combination of name and RecordType.id is a unique reference to a custom data record.

    Declaration

    Swift

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

    Declaration

    Swift

    public var records: [CustomPOIRecord]