Geocoder

fun Geocoder(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.