RouteProgressEngine
public protocol RouteProgressEngine : ManageableEngine
The RouteProgressEngine protocol provides functionality related to the calculation of progress along the route.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Calculates progress along the route which can base on passed
NavigationSnapshot.Throws
NavigationProcessingError.routeDataMissingif there is no active route.RouteProgressCalculationErrorif error occured during route progress calculation.Declaration
Swift
func calculateProgress(navigationSnapshot: NavigationSnapshot) throws -> RouteProgressParameters
navigationSnapshotThe snapshot of the current navigation session.
Return Value
An instance of
RouteProgress
RouteProgressEngine Protocol Reference