getRoute

abstract suspend fun getRoute(profile: Profile, routeRequest: RouteRequest): RouteResponse

Requests a route using the Directions endpoint. GET /v2/directions/{profile}