Class TrimbleMapsOffboardRouter
-
- All Implemented Interfaces:
-
com.trimblemaps.navigation.base.route.Router
public final class TrimbleMapsOffboardRouter implements RouterTrimbleMapsOffboardRouter provides online route-fetching
-
-
Constructor Summary
Constructors Constructor Description TrimbleMapsOffboardRouter(Context context, TrimbleMapsNativeNavigator navigatorNative, Logger logger)TrimbleMapsOffboardRouter(Context context)
-
Method Summary
Modifier and Type Method Description UnitgetRoute(RouteOptions routeOptions, Router.Callback callback)Fetch route based on RouteOptions Unitcancel()Interrupts a route-fetching request if one is in progress. Unitshutdown()Release used resources. UnitgetRouteRefresh(DirectionsRoute route, Integer legIndex, Integer geometryIndex, Boolean requestFasterRoute, RouteRefreshCallback callback)Refresh the traffic annotations for a given DirectionsRoute
-
-
-
Method Detail
-
getRoute
Unit getRoute(RouteOptions routeOptions, Router.Callback callback)
Fetch route based on RouteOptions
- Parameters:
routeOptions- RouteOptionscallback- Callback that gets notified with the results of the request
-
getRouteRefresh
Unit getRouteRefresh(DirectionsRoute route, Integer legIndex, Integer geometryIndex, Boolean requestFasterRoute, RouteRefreshCallback callback)
Refresh the traffic annotations for a given DirectionsRoute
- Parameters:
route- DirectionsRoute the direction route to refreshlegIndex- Int the index of the current leg in the routerequestFasterRoute- true to request a faster route, false otherwisecallback- Callback that gets notified with the results of the request
-
-