create

fun create(context: Context, apiKey: String, apiUrl: URL = DEFAULT_TOMTOM_API_URL): Search

Creates an instance of the OnlineSearch.

Parameters

context

Information about an application environment.

apiKey

API key for online search

apiUrl

Custom base URL to be used to execute search API calls. When not specified it defaults to DEFAULT_TOMTOM_API_URL.