IndexedRouteResponse
public struct IndexedRouteResponse
A RouteResponse
object that sorts routes from most optimal to least optimal and selected route index in it.
-
RouteResponse
object, containing selection of routes to follow.Declaration
Swift
public let routeResponse: RouteResponse
-
The index of the selected route within the
routeResponse
.Declaration
Swift
public let routeIndex: Int
-
Returns a route from the
routeResponse
under givenrouteIndex
if possible.Declaration
Swift
public var currentRoute: Route? { get }
-
Initializes a new
IndexedRouteResponse
object.Declaration
Swift
public init(routeResponse: RouteResponse, routeIndex: Int)
Parameters
routeResponse
RouteResponse
object, containing routes and other related info.routeIndex
Selected route index in an array.