public enum OnlineSearchCustomDataFactory

Factory to create an Online Search client that merges results from the Online Search with Custom POI results.


This is a Public Preview API. It may be changed or removed at any time.
  • Factory method for creating a Search instance that provides combined online search and custom data results.


    the total number of Custom POI records provided by all CustomPOIProvider shouldn’t exceed 5000 items.



    public static func create(
        apiKey: String,
        customPOIProviders: [CustomPOIProvider],
        customAPIURL: URL? = nil,
        geopoliticalView: String? = nil
        -> Search?



    API key for requesting online data.


    Custom POI data providers that would be used to inject external POI results into the returned list of search results.


    Custom base URL for online APIs. Defaults to nil and “” will be the base URL. Can be used to change to another service that implements the same API.


    The country code in the ISO 3166-1 alpha-2 format whose view on disputed areas should be used in Online search. A detailed overview of the conforming country codes is available at If not provided, or not supported, the international geopolitical view will be used in the Online Search. geopoliticalView is ignored for Custom POI search. Every CustomPOIProvider is responsible for defining correct POI data.

    Return Value

    a Search instance that combines online and custom POI search results.