RouteHelper

Convenience extensions for invoking the directions endpoints.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
suspend fun OrsClient.getRoute(start: Pair<Double, Double>, end: Pair<Double, Double>, profile: String): RouteResponse

Retrieves a route between two coordinates.

Link copied to clipboard

Retrieves a route as GeoJSON feature collection.

Link copied to clipboard
suspend fun OrsClient.getRouteGpx(start: Pair<Double, Double>, end: Pair<Double, Double>, profile: String): String

Retrieves a route as GPX between two coordinates.

suspend fun OrsClient.getRouteGpx(coordinates: List<List<Double>>, language: String, profile: String): String

Retrieves a route as GPX for an arbitrary coordinate list.