Ors Client
Abstraction over the OpenRouteService HTTP API.
Implementations map these suspending functions to the respective REST endpoints as documented in the OpenRouteService API reference.
Functions
Calls the export endpoint returning plain JSON.
Same as export but explicitly requesting JSON output.
Requests TopoJSON output from the export endpoint.
Autocomplete endpoint returning suggestions for a partial query.
Forward geocoding search endpoint.
Structured forward geocoding using discrete address fields.
Calls the elevation/line endpoint.
Calls the elevation/point endpoint.
Accesses the isochrones endpoint.
Calls the matrix endpoint and returns distance/duration matrices.
Delegates to the VROOM based optimization service.
Queries points of interest and returns a GeoJSON feature collection.
Requests a route using the Directions endpoint. GET /v2/directions/{profile}
Retrieves the route as GeoJSON feature collection.
Retrieves the route as GPX.
Snaps coordinates to the road network.
Snaps coordinates and returns a GeoJSON response.
Snaps coordinates and returns the JSON variant of the response.