AlternativeRoute
public struct AlternativeRoute : Identifiable
Representation of an alternative route with relation to the original.
This struct contains main and alternative routes which are sharing same origin and destination points, but differ at some point.
-
Alternative route identifier type
Declaration
Swift
public typealias ID = UInt32
-
Brief statistics of a route for traveling
See moreDeclaration
Swift
public struct RouteInfo
-
Alternative route identificator.
It is unique withing the same navigation session.
Declaration
Swift
public let id: ID
-
Original (main) route data
Declaration
Swift
public let indexedRouteResponse: IndexedRouteResponse
-
Intersection on the main route, where alternative route branches.
Declaration
Swift
public let mainRouteIntersection: Intersection
-
Intersection on the alternative route, where it splits from the main route.
Declaration
Swift
public let alternativeRouteIntersection: Intersection
-
Alternative route statistics, counting from the split point.
Declaration
Swift
public let infoFromDeviationPoint: RouteInfo
-
Alternative route statistics, counting from it’s origin.
Declaration
Swift
public let infoFromOrigin: RouteInfo