Navigation class abstract

Implemented types

Constructors

Properties

annotationLanguage AnnotationLanguage
Set the annotation language. Changing this option may trigger reroute.
getter/setter pair
avoidedZones List<LinearRing>
avoidedZones instructs the router to return routes that avoid provided polygons. If there are too many polygons or too complex polygon geometry, routes building may become impossible. In this case the error directions_driving_driving_router.DrivingTooComplexAvoidedZonesError will be returned. Changing this option may trigger reroute.
getter/setter pair
avoidPoorConditions bool
getter/setter pair
avoidTolls bool
The 'avoidTolls/avoidUnpaved/avoidPoorConditions' option instructs the router to return routes that avoid tolls/unpaved/roads in poor condition when possible. Changing these options may trigger reroute. All disabled by default.
getter/setter pair
avoidUnpaved bool
getter/setter pair
guidance Guidance
no setter
hashCode int
The hash code for this object.
no setterinherited
routes List<DrivingRoute>
Resulting routes for the previous request. For requestAlternatives() it will contain the current route and fastest alternative route (if available) along with the received alternatives. Current route always will be the first one and fastest alternative will be the second.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
vehicleOptions DrivingVehicleOptions
Changing this option may trigger reroute.
getter/setter pair

Methods

addListener(NavigationListener navigationListener) → void
The class does not retain the object in the 'navigationListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.
cancelRequest() → void
Cancel active routing request.
matchRoute(Polyline polyline) → void
Building a route based on a custom route geometry.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeListener(NavigationListener navigationListener) → void
requestAlternatives() → void
Request global alternatives for the current route. If there was a pending routing request, it will be canceled.
requestRoutes(AutomotiveRouteOptions routeOptions, {required List<RequestPoint> points}) → void
Request routes for further guidance. If there was a pending routing request, it will be canceled.
resetRoutes() → void
Cancel active routing request and clear routes vector.
resolveUri(String uri) → void
Resolve saved driving route URI for further guidance. If there was a pending routing request, it will be canceled.
resume() → void
Resumes suspended guidance. Guide will continue to guide the previous route or rebuild it. Useful when user don't want guidance in background.
startGuidance(DrivingRoute? route) → void
Start guidance with given route. This method will reset active current route if any. It only accepts either routes obtained from this routes field or null, which means freedrive session started.
stopGuidance() → void
Stops current guidance session. Call this method only if guidance has completely ended. For example, if you need to start another type of guidance (pedestrian for example) stop this first and than start another one. In case of route finished but you still on the road you must use startGuidance(null) instead.
suspend() → void
Stop tracking user position, later it could be resumed without losing current route. Useful when user don't want guidance in background.
toString() String
A string representation of this object.
inherited

Operators

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