DirectionsLeg class abstract

DirectionsLeg

Properties:

  • endAddress - Contains the human-readable address (typically a street address) from reverse geocoding the end_location of this leg. This content is meant to be read as-is. Do not programmatically parse the formatted address.
  • endLocation
  • startAddress - Contains the human-readable address (typically a street address) resulting from reverse geocoding the start_location of this leg. This content is meant to be read as-is. Do not programmatically parse the formatted address.
  • startLocation
  • steps - An array of steps denoting information about each separate step of the leg of the journey.
  • trafficSpeedEntry - Information about traffic speed along the leg.
  • viaWaypoint - The locations of via waypoints along this leg.
  • arrivalTime
  • departureTime
  • distance
  • duration
  • durationInTraffic

Constructors

DirectionsLeg([void updates(DirectionsLegBuilder b)])
factory

Properties

arrivalTime TimeZoneTextValueObject?
no setter
departureTime TimeZoneTextValueObject?
no setter
distance TextValueObject?
no setter
duration TextValueObject?
no setter
durationInTraffic TextValueObject?
no setter
endAddress String
Contains the human-readable address (typically a street address) from reverse geocoding the end_location of this leg. This content is meant to be read as-is. Do not programmatically parse the formatted address.
no setter
endLocation LatLngLiteral
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startAddress String
Contains the human-readable address (typically a street address) resulting from reverse geocoding the start_location of this leg. This content is meant to be read as-is. Do not programmatically parse the formatted address.
no setter
startLocation LatLngLiteral
no setter
steps → BuiltList<DirectionsStep>
An array of steps denoting information about each separate step of the leg of the journey.
no setter
trafficSpeedEntry → BuiltList<DirectionsTrafficSpeedEntry>
Information about traffic speed along the leg.
no setter
viaWaypoint → BuiltList<DirectionsViaWaypoint>
The locations of via waypoints along this leg.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild(dynamic updates(DirectionsLegBuilder)) DirectionsLeg
Rebuilds the instance.
inherited
toBuilder() DirectionsLegBuilder
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<DirectionsLeg>
no setter