Class TrimbleMapsHybridRouter
-
- All Implemented Interfaces:
-
com.trimblemaps.navigation.base.route.Router
public final class TrimbleMapsHybridRouter implements RouterTrimbleMapsHybridRouter combines onboard and offboard Routers. Fetch route based on internet-connection state.
-
-
Constructor Summary
Constructors Constructor Description TrimbleMapsHybridRouter(Context context, TrimbleMapsNativeNavigator navigatorNative, Logger logger)TrimbleMapsHybridRouter(Router onboardRouter, Router offboardRouter)
-
Method Summary
Modifier and Type Method Description UnitonNetworkStatusChanged(Boolean isNetworkAvailable)UnitgetRoute(RouteOptions routeOptions, Router.Callback callback)Fetch route based on RouteOptions UnitgetRouteRefresh(DirectionsRoute route, Integer legIndex, Integer geometryIndex, Boolean requestFasterRoute, RouteRefreshCallback callback)Refresh the traffic annotations for a given DirectionsRoute Unitcancel()Interrupts a route-fetching request if one is in progress. Unitshutdown()Release used resources.
-
-
-
Constructor Detail
-
TrimbleMapsHybridRouter
TrimbleMapsHybridRouter(Context context, TrimbleMapsNativeNavigator navigatorNative, Logger logger)
-
TrimbleMapsHybridRouter
TrimbleMapsHybridRouter(Router onboardRouter, Router offboardRouter)
- Parameters:
onboardRouter- RouteroffboardRouter- Router
-
-
Method Detail
-
onNetworkStatusChanged
Unit onNetworkStatusChanged(Boolean isNetworkAvailable)
-
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 routecallback- Callback that gets notified with the results of the request
-
-