DirectionsResponse class abstract

DirectionsResponse

Properties:

  • routes - Contains an array of routes from the origin to the destination. Routes consist of nested Legs and Steps.
  • status
  • geocodedWaypoints - Contains an array with details about the geocoding of origin, destination and waypoints. Elements in the geocoded_waypoints array correspond, by their zero-based position, to the origin, the waypoints in the order they are specified, and the destination. These details will not be present for waypoints specified as textual latitude/longitude values if the service returns no results. This is because such waypoints are only reverse geocoded to obtain their representative address after a route has been found. An empty JSON object will occupy the corresponding places in the geocoded_waypoints array.
  • availableTravelModes - Contains an array of available travel modes. This field is returned when a request specifies a travel mode and gets no results. The array contains the available travel modes in the countries of the given set of waypoints. This field is not returned if one or more of the waypoints are 'via waypoints'.
  • errorMessage - When the service returns a status code other than OK, there may be an additional error_message field within the response object. This field contains more detailed information about thereasons behind the given status code. This field is not always returned, and its content is subject to change.

Constructors

DirectionsResponse([void updates(DirectionsResponseBuilder b)])
factory

Properties

availableTravelModes → BuiltList<TravelMode>?
Contains an array of available travel modes. This field is returned when a request specifies a travel mode and gets no results. The array contains the available travel modes in the countries of the given set of waypoints. This field is not returned if one or more of the waypoints are 'via waypoints'.
no setter
errorMessage String?
When the service returns a status code other than OK, there may be an additional error_message field within the response object. This field contains more detailed information about thereasons behind the given status code. This field is not always returned, and its content is subject to change.
no setter
geocodedWaypoints → BuiltList<DirectionsGeocodedWaypoint>?
Contains an array with details about the geocoding of origin, destination and waypoints. Elements in the geocoded_waypoints array correspond, by their zero-based position, to the origin, the waypoints in the order they are specified, and the destination. These details will not be present for waypoints specified as textual latitude/longitude values if the service returns no results. This is because such waypoints are only reverse geocoded to obtain their representative address after a route has been found. An empty JSON object will occupy the corresponding places in the geocoded_waypoints array.
no setter
hashCode int
The hash code for this object.
no setterinherited
routes → BuiltList<DirectionsRoute>
Contains an array of routes from the origin to the destination. Routes consist of nested Legs and Steps.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status DirectionsStatus
no setter

Methods

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