StandaloneRouteProgressCalculationEngine
class StandaloneRouteProgressCalculationEngine : RouteProgressCalculationEngine
Content copied to clipboard
Stand alone implementation of RouteProgressCalculationEngine that calculates RouteProgress based on current MatchedLocation and extended route's representation (in form of Route.routeCoordinates).
If MatchedLocation.locationPrediction are not empty engine will try to interpolate current position for SystemTimeProvider.currentTimeMillis otherwise MatchedLocation.location will be used.
If the route includes waypoints, the engine will add a list of RouteProgress.remainingRoutePointsProgress starting from NavigationSnapshot.nextWaypoint.
Important: This is a Public Preview API. It may be changed or removed at any time.
Constructors
Functions
Link copied to clipboard
open override fun calculateProgress(navigationSnapshot: NavigationSnapshot): RouteProgress
Content copied to clipboard
Calculates progress along the route which can base on passed NavigationSnapshot.