Class TrimbleMapsOnboardRouter
-
- All Implemented Interfaces:
-
com.trimblemaps.navigation.base.route.Router
public final class TrimbleMapsOnboardRouter implements RouterTrimbleMapsOnboardRouter provides offline route fetching
It uses offline storage path to store and retrieve data, setup endpoint, tiles' version, token. Config is provided via OnboardRouterOptions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTrimbleMapsOnboardRouter.NativeRouterCallback
-
Constructor Summary
Constructors Constructor Description TrimbleMapsOnboardRouter(Context context, TrimbleMapsNativeNavigator navigatorNative, Logger logger)TrimbleMapsOnboardRouter(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 faster route, false otherwisecallback- Callback that gets notified with the results of the request
-
-