create

fun create(context: Context, apiKey: String, customApiUrl: URL? = null, geopoliticalView: String? = null): ReverseGeocoder

Creates an instance of OnlineReverseGeocoder.

Usage example:

val reverseGeocoder = OnlineReverseGeocoder.create(
applicationContext,
"your_api_key_here",
customApiUrl = URL("https://api.proxy.com/search/10"),
geopoliticalView = "IND"
)
reverseGeocoder.reverseGeocode(...)

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 provided, the international geopolitical view is used.

Throws