Interface Navigation


public interface Navigation
MapFactor SDK Navigation module
Since:
1.0
  • Method Details

    • setNavigationStatusListener

      void setNavigationStatusListener(@Nullable NavigationStatusListener listener)
      Set navigation status listener
      Parameters:
      listener - navigation status change listener
      Since:
      1.0
    • start

      void start()
      Start navigation to current destination point. To select a route alternative, use start.
      Since:
      1.0
    • start

      void start(int routeId)
      Start navigation to current destination point along previously calculated route. To calculate route amd get routeId, call calculateRoute and selectRouteAlternative
      Parameters:
      routeId - route ID to navigate along
      Since:
      1.0
    • startSimulation

      void startSimulation()
      Start navigation simulation
      Since:
      1.0
    • stop

      void stop()
      Stop navigation
      Since:
      1.0
    • setRouteRecalculationConditions

      void setRouteRecalculationConditions(int distanceFromRoute, int timeAwayFromRoute)
      Initialize parameters controlling route recalculation when diverting from navigation route. Route is scheduled for recalculation when current position is at least distanceFromRoute meters from route for at least timeAwayFromRoute seconds.
      Parameters:
      distanceFromRoute - distance from navigation route in meters. Keep existing if the value is not greater than zero.
      timeAwayFromRoute - time away from navigation route in seconds. Keep existing if the value is not greater than zero.
      Since:
      1.0
    • getNavigationInfo

      @Nullable NavigationInfo getNavigationInfo()
      Get current navigation status
      Returns:
      current navigation info (null when not currently navigating)
      Since:
      1.0
    • getInstructionsVoicesManager

      @NonNull InstructionsVoicesManager getInstructionsVoicesManager()
      Get instructions voices manager
      Returns:
      instructions voices manager
      Since:
      1.0
    • getNavigationHistoryLog

      @NonNull NavigationHistoryLog getNavigationHistoryLog()
      Get navigation history log
      Returns:
      navigation history log
      Since:
      1.0
    • getEmergencyModeManager

      @NonNull EmergencyModeManager getEmergencyModeManager()
      Get emergency mode manager
      Returns:
      emergency mode manager
      Since:
      1.0