distance property

Distance? distance
final

Indicates the total distance covered by this leg, as a field with the following elements:

  • value indicates the distance in meters
  • text contains a human-readable representation of the distance, displayed in units as used at the origin (or as overridden within the units parameter in the request). (For example, miles and feet will be used for any origin within the United States.) Note that regardless of what unit system is displayed as text, the distance.value field always contains a value expressed in meters.

These fields may be absent if the distance is unknown.

Implementation

final Distance? distance;