MapboxPlatformGeocoder

fun MapboxPlatformGeocoder(apiKey: String, parameters: MapboxParameters = MapboxParameters(), json: Json = HttpApiEndpoint.json(), client: HttpClient = HttpApiEndpoint.httpClient(json)): MapboxPlatformGeocoder

Creates a MapboxPlatformGeocoder to be used with the Geocoder.

See Mapbox for more information.

Return

A MapboxPlatformGeocoder instance.

Parameters

apiKey

The Mapbox 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 MapboxPlatformGeocoder(apiKey: String, json: Json = HttpApiEndpoint.json(), client: HttpClient = HttpApiEndpoint.httpClient(json), block: MapboxParametersBuilder.() -> Unit): MapboxPlatformGeocoder

Creates a MapboxPlatformGeocoder to be used with the Geocoder.

See Mapbox for more information.

Return

A MapboxPlatformGeocoder instance.

Parameters

apiKey

The Mapbox 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 MapboxParameters to use for the geocoding requests.