NavigationService class abstract Routes & Navigation

Navigation service class

Constructors

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

simulationMaxSpeedMultiplier double
Get the maximum simulation speed multiplier.
no setter
simulationMinSpeedMultiplier double
Get the minimum simulation speed multiplier.
no setter
transferStatistics TransferStatistics
Get the transfer statistics
no setter

Static Methods

cancelNavigation(TaskHandler taskHandler) → void
Cancel the active navigation.
getBetterRouteTimeDistanceToFork({TaskHandler? taskHandler}) TimeDistance
Get better route time-distance until it forks the navigation route.
getNavigationInstruction({TaskHandler? taskHandler}) NavigationInstruction
Get the current navigation instruction.
getNavigationParameters() ParameterList
Get navigation parameters.
getNavigationRoute({TaskHandler? taskHandler}) Route
Get the current route used for navigation.
isNavigationActive({TaskHandler? taskHandler}) bool
Check if there is an active navigation in progress.
isSimulationActive({TaskHandler? taskHandler}) bool
Check if there is an active simulation in progress.
isTripActive({TaskHandler? taskHandler}) bool
Check if there is an active trip ( navigation or simulation ) in progress.
setNavigationRoadBlock(int length, {int startDistance = -1, TaskHandler? taskHandler}) → void
Cancel the active navigation.
skipNextIntermediateDestination({TaskHandler? taskHandler}) GemError
Skip next intermediate destination on the navigation route.
startNavigation(Route route, void onNavigationInstructionUpdate(NavigationEventType eventType, NavigationInstruction? instruction)?, {void onNavigationInstruction(NavigationInstruction instruction, Set<NavigationInstructionUpdateEvents> events)?, void onNavigationStarted()?, void onTextToSpeechInstruction(String textInstruction)?, void onWaypointReached(Landmark landmark)?, void onDestinationReached(Landmark landmark)?, void onRouteUpdated(Route route)?, void onBetterRouteDetected(Route route, int travelTime, int delay, int timeGain)?, void onBetterRouteRejected(GemError reason)?, void onBetterRouteInvalidated()?, void onSkipNextIntermediateDestinationDetected()?, void onError(GemError error)?, void onNotifyStatusChange(NavigationStatus status)?}) TaskHandler?
Start a new navigation
startSimulation(Route route, void onNavigationInstructionUpdate(NavigationEventType eventType, NavigationInstruction? instruction)?, {void onNavigationInstruction(NavigationInstruction instruction, Set<NavigationInstructionUpdateEvents> events)?, void onNavigationStarted()?, void onTextToSpeechInstruction(String textInstruction)?, void onWaypointReached(Landmark landmark)?, void onDestinationReached(Landmark landmark)?, void onRouteUpdated(Route route)?, void onBetterRouteDetected(Route route, int travelTime, int delay, int timeGain)?, void onBetterRouteRejected(GemError reason)?, void onBetterRouteInvalidated()?, void onSkipNextIntermediateDestinationDetected()?, void onError(GemError error)?, void onNotifyStatusChange(NavigationStatus status)?, double speedMultiplier = 1.0}) TaskHandler?
Start a new simulation