Interface RouteRefreshCallback
-
- All Implemented Interfaces:
public interface RouteRefreshCallbackCallback for refresh route
-
-
Method Summary
Modifier and Type Method Description abstract UnitonRefresh(Integer legIndex, Integer geometryIndex, LegAnnotation updatedAnnotations, DirectionsResponse fasterRoutes)Called when the DirectionsRoute has been refreshed abstract UnitonError(RouteRefreshError error)Called when an error has occurred while fetching the route
-
-
-
Method Detail
-
onRefresh
abstract Unit onRefresh(Integer legIndex, Integer geometryIndex, LegAnnotation updatedAnnotations, DirectionsResponse fasterRoutes)
Called when the DirectionsRoute has been refreshed
- Parameters:
legIndex- index of the current leg at the time the request was initiatedgeometryIndex- index of the current geometry point in the leg at the time the request was initiatedupdatedAnnotations- updated annotations (congestion, duration, etc.fasterRoutes- suggested faster routes
-
onError
abstract Unit onError(RouteRefreshError error)
Called when an error has occurred while fetching the route
- Parameters:
error- RouteRefreshError
-
-