Class TrimbleMapsHybridRouter

  • All Implemented Interfaces:
    com.trimblemaps.navigation.base.route.Router

    
    public final class TrimbleMapsHybridRouter
     implements Router
                        

    TrimbleMapsHybridRouter combines onboard and offboard Routers. Fetch route based on internet-connection state.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit onNetworkStatusChanged(Boolean isNetworkAvailable)
      Unit getRoute(RouteOptions routeOptions, Router.Callback callback) Fetch route based on RouteOptions
      Unit getRouteRefresh(DirectionsRoute route, Integer legIndex, Integer geometryIndex, Boolean requestFasterRoute, RouteRefreshCallback callback) Refresh the traffic annotations for a given DirectionsRoute
      Unit cancel() Interrupts a route-fetching request if one is in progress.
      Unit shutdown() Release used resources.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TrimbleMapsHybridRouter

        TrimbleMapsHybridRouter(Context context, TrimbleMapsNativeNavigator navigatorNative, Logger logger)
      • TrimbleMapsHybridRouter

        TrimbleMapsHybridRouter(Router onboardRouter, Router offboardRouter)
        Parameters:
        onboardRouter - Router
        offboardRouter - Router
    • Method Detail

      • getRoute

         Unit getRoute(RouteOptions routeOptions, Router.Callback callback)

        Fetch route based on RouteOptions

        Parameters:
        routeOptions - RouteOptions
        callback - 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 refresh
        legIndex - Int the index of the current leg in the route
        callback - Callback that gets notified with the results of the request
      • cancel

         Unit cancel()

        Interrupts a route-fetching request if one is in progress.