distance property
Indicates the total distance covered by this leg, as a field with the following elements:
value
indicates the distance in meterstext
contains a human-readable representation of the distance, displayed in units as used at the origin (or as overridden within theunits
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, thedistance.value
field always contains a value expressed in meters.
These fields may be absent if the distance is unknown.
Implementation
final Distance? distance;