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
-
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.