ValhallaResponse

sealed class ValhallaResponse

Sealed class representing different response formats from the Valhalla routing engine.

This class wraps routing responses in different formats based on the com.valhalla.api.models.DirectionsOptions.Format specified in the request.

See also

Inheritors

Types

Link copied to clipboard
class Json(val jsonResponse: RouteResponse) : ValhallaResponse

Native Valhalla JSON routing response format.

Link copied to clipboard
class Osrm(val osrmResponse: RouteResponse) : ValhallaResponse

OSRM-compatible routing response format.