create
fun OnlineSearch.Companion.create(context: Context, apiKey: String, customPoiProviders: List<CustomPoiProvider>, customApiUrl: URL? = null, geopoliticalView: String? = null): Search
Instantiates a Search object utilizing TomTom's online service, with added functionality to incorporate custom POIs into search queries.
Important: This is a Public Preview API. It may be changed or removed at any time.
Parameters
context
Android context.
apiKey
API key for the online search.
customPoiProviders
A list of custom POI providers for injecting external data into the search engine. The custom POIs will be included in the search process.
customApiUrl
Custom base URL to execute Search API calls.
geopoliticalView
The country code in the ISO 3166-1 alpha-3 format; search results express the view of the given country on one or more disputed territories. If not specified, a region-appropriate view is applied automatically. It must be a valid ISO 3166-1 alpha-3 country code.
Throws
if geopoliticalView is invalid.