ElevationHelper

Helper functions for the ORS elevation endpoints.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
suspend fun OrsClient.getElevationLine(coordinates: List<List<Double>>, dataset: String? = null, formatOut: String = "geojson"): ElevationLineResponse

Convenience helper to request elevation for a LineString provided as list of lon, lat pairs. Builds a GeoJSON LineString payload and requests GeoJSON output.

Link copied to clipboard
suspend fun OrsClient.getElevationPoint(lon: Double, lat: Double, formatOut: String = "geojson", dataset: String? = null): ElevationPointResponse

Calls the ORS elevation/point POST endpoint for a single coordinate.