mapbox

fun Geocoder.Companion.mapbox(apiKey: String, parameters: MapboxParameters = MapboxParameters(), json: Json = HttpApiEndpoint.json(), client: HttpClient = HttpApiEndpoint.httpClient(json), dispatcher: CoroutineDispatcher = Dispatchers.Default): Geocoder

Creates a new Geocoder using the Mapbox HTTP API geocoding service.

See Mapbox for more information.

Return

A new Geocoder using the Mapbox HTTP API geocoding service.

Parameters

apiKey

The Mapbox API key.

parameters

The parameters to use for the geocoder.

json

The JSON implementation to use for serialization.

client

The HTTP client to use for requests.

dispatcher

The coroutine dispatcher to use for requests.


fun Geocoder.Companion.mapbox(apiKey: String, json: Json = HttpApiEndpoint.json(), client: HttpClient = HttpApiEndpoint.httpClient(json), dispatcher: CoroutineDispatcher = Dispatchers.Default, block: MapboxParametersBuilder.() -> Unit): Geocoder

Creates a new Geocoder using the Mapbox HTTP API geocoding service.

See Mapbox for more information.

Return

A new Geocoder using the Mapbox HTTP API geocoding service.

Parameters

apiKey

The Mapbox API key.

json

The JSON implementation to use for serialization.

client

The HTTP client to use for requests.

dispatcher

The coroutine dispatcher to use for requests.

block

Customize the MapboxParameters to use for the geocoder.