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