mapboxGeocoder

fun AutocompleteService.Companion.mapboxGeocoder(apiKey: String, parameters: MapboxParameters = MapboxParameters(), json: Json = HttpApiEndpoint.json(), client: HttpClient = HttpApiEndpoint.httpClient(json)): AutocompleteService<Place>

Creates a new AutocompleteService that uses the Mapbox Geocoding API to provide autocomplete suggestions.

Return

A new AutocompleteService that uses the Mapbox Geocoding API.

Parameters

apiKey

The Mapbox API key.

parameters

The parameters to use when making requests to the Mapbox Geocoding API.

json

The JSON serializer to use when parsing responses.

client

The HTTP client to use when making requests.


fun AutocompleteService.Companion.mapboxGeocoder(apiKey: String, json: Json = HttpApiEndpoint.json(), client: HttpClient = HttpApiEndpoint.httpClient(json), block: MapboxParametersBuilder.() -> Unit): AutocompleteService<Place>

Creates a new AutocompleteService that uses the Mapbox Geocoding API to provide autocomplete suggestions.

Return

A new AutocompleteService that uses the Mapbox Geocoding API.

Parameters

apiKey

The Mapbox API key.

json

The JSON serializer to use when parsing responses.

client

The HTTP client to use when making requests.

block

A block that configures the parameters to use when making requests to the Mapbox Geocoding API.