mapboxGeocoder

fun Autocomplete.Companion.mapboxGeocoder(apiKey: String, options: AutocompleteOptions = AutocompleteOptions(), parameters: MapboxParameters = MapboxParameters(), json: Json = HttpApiEndpoint.json(), client: HttpClient = HttpApiEndpoint.httpClient(json), dispatcher: CoroutineDispatcher = Dispatchers.Default): Autocomplete<Place>

Creates a new Autocomplete instance that uses the Mapbox Geocoding API.

Return

A new Autocomplete instance.

Parameters

apiKey

The Mapbox API key.

options

The autocomplete options.

parameters

The Mapbox geocoder parameters.

json

The JSON serializer.

client

The HTTP client to make the requests with.

dispatcher

The coroutine dispatcher.


fun Autocomplete.Companion.mapboxGeocoder(apiKey: String, options: AutocompleteOptions = AutocompleteOptions(), json: Json = HttpApiEndpoint.json(), client: HttpClient = HttpApiEndpoint.httpClient(json), dispatcher: CoroutineDispatcher = Dispatchers.Default, block: MapboxParametersBuilder.() -> Unit): Autocomplete<Place>

Creates a new Autocomplete instance that uses the Mapbox Geocoding API.

Return

A new Autocomplete instance.

Parameters

apiKey

The Mapbox API key.

options

The autocomplete options.

json

The JSON serializer.

client

The HTTP client to make the requests with.

dispatcher

The coroutine dispatcher.

block

The builder block to configure the Mapbox geocoder parameters.