openCage
fun PlatformGeocoder.Companion.openCage(apiKey: String, parameters: OpenCageParameters = OpenCageParameters(), json: Json = HttpApiEndpoint.json(), client: HttpClient = HttpApiEndpoint.httpClient(json)): OpenCagePlatformGeocoder
Creates a OpenCagePlatformGeocoder to be used with the Geocoder.
See OpenCage for more information.
Return
A OpenCagePlatformGeocoder instance.
Parameters
apiKey
The OpenCage API key.
parameters
The parameters to use for the geocoding requests.
json
The Json instance to use for serialization and deserialization.
client
The HttpClient to use for making requests.
fun PlatformGeocoder.Companion.openCage(apiKey: String, json: Json = HttpApiEndpoint.json(), client: HttpClient = HttpApiEndpoint.httpClient(json), block: OpenCageParametersBuilder.() -> Unit): OpenCagePlatformGeocoder
Creates a OpenCagePlatformGeocoder to be used with the Geocoder.
See OpenCage for more information.
Return
A OpenCagePlatformGeocoder instance.
Parameters
apiKey
The OpenCage API key.
json
The Json instance to use for serialization and deserialization.
client
The HttpClient to use for making requests.
block
A lambda that configures the OpenCageParameters to use for the geocoding requests.