Package-level declarations

Types

Link copied to clipboard

Alias that denotes a forward geocoding HttpApiEndpoint.

Link copied to clipboard

A HttpApiPlatformGeocoder for forward geocoding that uses the provided ForwardEndpoint.

Link copied to clipboard

Defines the interface for a geocoder that uses an HTTP API to perform geocoding operations.

Link copied to clipboard

Alias that denotes a reverse geocoding HttpApiEndpoint.

Link copied to clipboard

A HttpApiPlatformGeocoder for reverse geocoding that uses the provided ReverseEndpoint.

Functions

Link copied to clipboard
fun ForwardEndpoint(url: (String) -> String, mapResponse: suspend (HttpResponse) -> List<Coordinates>): ForwardEndpoint

An endpoint for forward geocoding.

Link copied to clipboard
fun HttpApiPlatformGeocoder(forwardEndpoint: ForwardEndpoint, reverseEndpoint: ReverseEndpoint, json: Json = HttpApiEndpoint.json(), client: HttpClient = HttpApiEndpoint.httpClient(json)): HttpApiPlatformGeocoder
Link copied to clipboard
fun ReverseEndpoint(url: (Coordinates) -> String, mapResponse: suspend (HttpResponse) -> List<Place>): ReverseEndpoint

An endpoint for reverse geocoding.