duration property
Indicates the total duration of this leg, as a field with the following elements:
- valueindicates the duration in seconds.
- textcontains a human-readable representation of the duration.
These fields may be absent if the duration is unknown.
Implementation
final DirectionsDuration? duration;