DirectionsStep class abstract
Each element in the steps array defines a single step of the calculated directions. A step is the most atomic unit of a direction's route, containing a single step describing a specific, single instruction on the journey. E.g. "Turn left at W. 4th St." The step not only describes the instruction but also contains distance and duration information relating to how this step relates to the following step. For example, a step denoted as "Merge onto I-80 West" may contain a duration of "37 miles" and "40 minutes," indicating that the next step is 37 miles/40 minutes from this step. When using the Directions API to search for transit directions, the steps array will include additional transit details in the form of a transit_details array. If the directions include multiple modes of transportation, detailed directions will be provided for walking or driving steps in an inner steps array. For example, a walking step will include directions from the start and end locations: "Walk to Innes Ave & Fitch St". That step will include detailed walking directions for that route in the inner steps array, such as: "Head north-west", "Turn left onto Arelious Walker", and "Turn left onto Innes Ave".
Properties:
- duration
- endLocation
- htmlInstructions - Contains formatted instructions for this step, presented as an HTML text string. This content is meant to be read as-is. Do not programmatically parse this display-only content.
- polyline
- startLocation
- travelMode
- distance
- maneuver - Contains the action to take for the current step (turn left, merge, straight, etc.). Values are subject to change, and new values may be introduced without prior notice.
- transitDetails
- steps - Contains detailed directions for walking or driving steps in transit directions. Substeps are only available when travel_mode is set to "transit". The inner steps array is of the same type as steps.
Constructors
- DirectionsStep([void updates(DirectionsStepBuilder b)])
-
factory
Properties
- distance → TextValueObject?
-
no setter
- duration → TextValueObject
-
no setter
- endLocation → LatLngLiteral
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- htmlInstructions → String
-
Contains formatted instructions for this step, presented as an HTML text string. This content is meant to be read as-is. Do not programmatically parse this display-only content.
no setter
- maneuver → DirectionsStepManeuverEnum?
-
Contains the action to take for the current step (turn left, merge, straight, etc.). Values are subject to change, and new values may be introduced without prior notice.
no setter
- polyline → DirectionsPolyline
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startLocation → LatLngLiteral
-
no setter
- steps → JsonObject?
-
Contains detailed directions for walking or driving steps in transit directions. Substeps are only available when travel_mode is set to "transit". The inner steps array is of the same type as steps.
no setter
- transitDetails → DirectionsTransitDetails?
-
no setter
- travelMode → TravelMode
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rebuild(
dynamic updates(DirectionsStepBuilder)) → DirectionsStep -
Rebuilds the instance.
inherited
-
toBuilder(
) → DirectionsStepBuilder -
Converts the instance to a builder
B
.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
serializer
→ Serializer<
DirectionsStep> -
no setter