Table of Contents

Class Duration

Namespace
GoogleMapsApi.Entities.Directions.Response
Assembly
GoogleMapsApi.dll

duration indicates the total duration of this leg These fields may be absent if the duration is unknown.

[DataContract(Name = "duration")]
public class Duration
Inheritance
Duration
Inherited Members

Properties

Text

text contains a human-readable representation of the duration.

[DataMember(Name = "text")]
public string? Text { get; set; }

Property Value

string

TimeZone

[DataMember(Name = "time_zone")]
public string? TimeZone { get; set; }

Property Value

string

Value

value indicates the duration in seconds.

public TimeSpan Value { get; set; }

Property Value

TimeSpan