public func remainingRouteGeometry(
fullRouteGeometry: GeoPointRouteAttribute,
currentRoutePoint: RoutePoint
) -> GeoPointRouteAttribute
Calculates the geometry of the rest of the route, i.e. the geometry starting from the point corresponding to the current route point to the end of the route. If the route is completely passed or if 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.