RouteStepProgress
open class RouteStepProgress: NSObject
RouteStepProgress
stores the user’s progress along a route step.
-
Returns the current
RouteStep
.Declaration
Swift
public let step: RouteStep
-
Returns distance user has traveled along current step.
Declaration
Swift
public var distanceTraveled: CLLocationDistance = 0
-
Returns distance from user to end of step.
Declaration
Swift
public var userDistanceToManeuverLocation: CLLocationDistance? = nil
-
Total distance in meters remaining on current step.
Declaration
Swift
public var distanceRemaining: CLLocationDistance
-
Number between 0 and 1 representing fraction of current step traveled.
Declaration
Swift
public var fractionTraveled: Double
-
Number of seconds remaining on current step.
Declaration
Swift
public var durationRemaining: TimeInterval
-
Intializes a new
RouteStepProgress
.Declaration
Swift
public init(step: RouteStep)
Parameters
step
Step on a
RouteLeg
. -
All intersections on the current
RouteStep
and also the first intersection on the upcomingRouteStep
.The upcoming
RouteStep
firstIntersection
is added because it is omitted from the current step.Declaration
Swift
public var intersectionsIncludingUpcomingManeuverIntersection: [Intersection]?
-
The next intersection the user will travel through.
The step must contains
Intersections
for this value not benil
.Declaration
Swift
public var upcomingIntersection: Intersection?
-
Index representing the current intersection.
Declaration
Swift
public var intersectionIndex: Int = 0
-
The distance in meters the user is to the next intersection they will pass through.
Declaration
Swift
public var userDistanceToUpcomingIntersection: CLLocationDistance?