OpenCageReverseEndpoint

class OpenCageReverseEndpoint(apiKey: String, parameters: OpenCageParameters = OpenCageParameters()) : HttpApiEndpoint<Coordinates, List<Place>>

A ReverseEndpoint that uses the OpenCage Geocoding API.

Constructors

Link copied to clipboard
constructor(apiKey: String, block: OpenCageParametersBuilder.() -> Unit)

Creates a new OpenCageReverseEndpoint with the given API key.

constructor(apiKey: String, parameters: OpenCageParameters = OpenCageParameters())

Functions

Link copied to clipboard
open suspend override fun mapResponse(response: HttpResponse): List<Place>
Link copied to clipboard
open override fun url(param: Coordinates): String