fun remainingRouteGeometry(fullRouteGeometry: GeoPointRouteAttribute, currentRoutePoint: RoutePoint): GeoPointRouteAttribute
Calculates the geometry of the remaining part of the route, i.e. the geometry starting at the point corresponding to the current waypoint and continuing to the end of the route. If the route is completely passed or the current point is outside the route, an empty geometry is returned.
Parameters
fullRouteGeometry
GeoPointRouteAttribute
Full geometry of the entire route
currentRoutePoint
RoutePoint
Current position on the route
Returns
GeoPointRouteAttribute
Geometry of the rest of the route
Operation complexity O(N), where N = full_route_geometry.size()