Maneuver class abstract
This class provides all the information for a maneuver.
The directional information (e.g. road names, road numbers and signpost direction) is stored in Maneuver.roadTexts and Maneuver.nextRoadTexts attributes. As for the motorway exit information, it can be obtained from Maneuver.exitSignTexts attribute.
Constructors
- Maneuver()
Properties
- action → ManeuverAction
-
Indicates the maneuver action.
Gets the maneuver action.
no setter
- coordinates → GeoCoordinates
-
Geographic coordinates where the maneuver is located.
Gets the geographic coordinates where the maneuver is located.
no setter
- countryCode → String?
-
The country code of the maneuver position. The value is
nullwhen no data is available. Gets the country code of the maneuver position. The value isnullwhen no data is available.no setter - duration → Duration
-
The estimated time in seconds needed to perform the maneuver.
Gets the estimated time in seconds needed to perform the maneuver.
no setter
- exitSignTexts → LocalizedTexts
-
The textual attributes of the exit sign. These might contain exit number(s) and/or name(s).
These attributes are only available for the Navigate license.
Otherwise, the attributes are always empty.
Gets the textual attributes of the exit sign. These might contain exit number(s) and/or name(s).
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- intersectionNames → LocalizedTexts
-
The textual attributes of the intersection.
These attributes are only available for the Navigate license.
Otherwise, the attributes are always empty.
Note: Routes calculated with OfflineRoutingEngine are not supported.
Gets the textual attributes of the intersection.
no setter
- lengthInMeters → int
-
The length of the maneuver in meters.
Gets the length of the maneuver in meters.
no setter
- nextRoadTexts → RoadTexts
-
The textual attributes of the next road containing the corresponding road name(s) and road number(s) after the maneuver point.
These attributes are only available for the Navigate license.
Otherwise, the attributes are always empty.
Gets the textual attributes of the next road containing the corresponding road name(s) and road number(s) after the maneuver point.
no setter
- offset → int
-
Index over Section.geometry where the maneuver is located.
Gets the index over Section.geometry where the maneuver is located.
no setter
- roadTexts → RoadTexts
-
The textual attributes of the current road containing road names, road numbers and signpost direction (towards) information.
Note: These attributes are only available for the Navigate license.
Otherwise, the attributes are always empty.
Gets the textual attributes of the current road containing road names, road numbers and signpost direction (towards) information.
no setter
- roundaboutAngleInDegrees → double?
-
The angle is estimated between the incoming and outgoing route parts before entering the actual roundabout.
This is done to provide a better orientation for drivers. For better results, the incoming and outcoming route
parts can be around 50 meters in length. In addition, these parts lie usually around 30 meters away from
the actual roundabout. Therefore, the resulting arc does not necessarily represent the exact curved path a
vehicle has to follow within a roundabout from the point of entry to the point of exit. Instead, it reflects
the route path before and after the roundabout to highlight the directional change along the route. The angle can have a value from -360.0 to 360.0, and it is positive
in right-hand side driving country, and negative in left-hand side countries.
Note that the value is available for both the enter roundabout actions and the exit roundabout
actions. Both maneuvers have the same value. When the incoming or outgoing route parts are curvy or when the
roundabout itself is not representing a perfect circle, then the accuracy of the angle may be
compromised.
Note: These attributes are only available for the Navigate license.
The angle is estimated between the incoming and outgoing route parts before entering the actual roundabout.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sectionIndex → int
-
Index over Route.sections indicating the section to which the maneuver belongs to.
Gets the index over Route.sections indicating the section to which the maneuver belongs to.
no setter
- signpost → Signpost?
-
Gets the Signpost object.
Gets Signpost object.
no setter
- spanIndex → int
-
Index over Section.spans indicating the first span after the maneuver point.
Note: The span index for the last maneuvers (those maneuvers with maneuver action set to
ManeuverAction.arrive) cannot be used, since these maneuvers are placed after the last span of the route and
the span index for them would be greater than the span list size.
Gets the index over Section.spans indicating the first span after the maneuver point.
no setter
- text → String
-
The maneuver instruction. The text is formatted and localized as specified via
RouteTextOptions.
Note for users of the Navigate license: This text is meant to be displayed in a preview context, whereas real-time
EventTextListenertexts are meant to be used for spoken voice announcements during a trip. Gets the maneuver instruction. The text is formatted and localized as specified via RouteTextOptions.no setter - turnAngleInDegrees → double?
-
The angle of the turn component of the maneuver.
The angle increases clockwise and small values are used for going straight, i.e. a positive number
means there is a right turn and a negative number is a left turn.
Some maneuvers like Depart, Arrive and Roundabout pass doesn't have a well defined angle, so the value
is omitted.
Note: These attributes are only available for the Navigate license.
Gets the angle of the turn component of the maneuver. The value is in degrees and from -180 to 180.
no setter
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