Package com.mapfactor.sdk.navigation
Interface Navigation
public interface Navigation
MapFactor SDK Navigation module
- Since:
- 1.0
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Current navigation status -
Method Summary
Modifier and TypeMethodDescriptionGet emergency mode managerGet instructions voices managerGet navigation history logGet current navigation statusvoid
Set navigation status listenervoid
setRouteRecalculationConditions
(int distanceFromRoute, int timeAwayFromRoute) Initialize parameters controlling route recalculation when diverting from navigation route.void
start()
Start navigation to current destination point.void
start
(int routeId) Start navigation to current destination point along previously calculated route.void
Start navigation simulationvoid
stop()
Stop navigation
-
Method Details
-
start
void start()Start navigation to current destination point. To select a route alternative, usestart
.- Since:
- 1.0
-
start
void start(int routeId) Start navigation to current destination point along previously calculated route. To calculate route amd get routeId, callcalculateRoute
andselectRouteAlternative
- 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
-
getInstructionsVoicesManager
Get instructions voices manager- Returns:
- instructions voices manager
- Since:
- 1.0
-
getEmergencyModeManager
Get emergency mode manager- Returns:
- emergency mode manager
- Since:
- 1.0