ForwardGeocoder

fun ForwardGeocoder(endpoint: ForwardEndpoint, json: Json = HttpApiEndpoint.json(), httpClient: HttpClient = HttpApiEndpoint.httpClient(json), dispatcher: CoroutineDispatcher = Dispatchers.Default): ForwardGeocoder

Create a new Geocoder instance for forward geocoding operations.

Return

A new Geocoder instance.

Parameters

endpoint

The HttpApiEndpoint to use for forward geocoding operations.

json

The Json instance to use for serialization and deserialization.

httpClient

The HttpClient to use for network operations.

dispatcher

The CoroutineDispatcher to use for geocoding operations.