IndexedRouteResponse
public struct IndexedRouteResponse
A RouteResponse object that sorts routes from most optimal to least optimal and selected route index in it.
-
RouteResponseobject, 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
routeResponseunder givenrouteIndexif possible.Declaration
Swift
public var currentRoute: Route? { get } -
Initializes a new
IndexedRouteResponseobject.Declaration
Swift
public init(routeResponse: RouteResponse, routeIndex: Int)Parameters
routeResponseRouteResponseobject, containing routes and other related info.routeIndexSelected route index in an array.
Install in Dash
IndexedRouteResponse Structure Reference