create

@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
fun create(context: Context, apiKey: String, ndsStore: NdsStore, customApiUrl: URL? = null): ReverseGeocoder

Creates an instance of HybridReverseGeocoder.

The com.tomtom.sdk.search.reversegeocoder.online.OnlineReverseGeocoder and OfflineReverseGeocoder implementations are run in parallel. The method returns the result from the com.tomtom.sdk.search.reversegeocoder.online.OnlineReverseGeocoder implementation if it succeeds, otherwise, the result from the OfflineReverseGeocoder implementation is returned.

The geopolitical view applied to com.tomtom.sdk.search.reversegeocoder.online.OnlineReverseGeocoder is the same as that used in ndsStore.

Return

An instance of HybridReverseGeocoder.

Parameters

context

Information about an application environment.

apiKey

API key for the online reverse geocoder.

ndsStore

Offline map handle. Additionally ndsStore defines overall geopolitical view for both online and offline in HybridReverseGeocoder. Configure corresponding geopolitical view in NdsStoreConfiguration and initialize NdsStore with it.

customApiUrl

Custom base URL for reverse geocoding API calls.