create
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP] )
Deprecated
This will be removed 12 months after the next release.
Creates an instance of OnlineReverseGeocoder.
Usage example:
val reverseGeocoder = OnlineReverseGeocoder.create(
applicationContext,
"your_tomtom_api_key_here",
customApiUrl = URL("https://api.proxy.com/search/10"),
geopoliticalView = "IND"
)
reverseGeocoder.reverseGeocode(...)Content copied to clipboard
Parameters
context
Android context.
apiKey
API key.
customApiUrl
Custom base URL to be used 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.
Throws
if geopoliticalView is invalid