Table of Contents

Class Element

Namespace
GoogleMapsApi.Entities.DistanceMatrix.Response
Assembly
GoogleMapsApi.dll
public class Element
Inheritance
Element
Inherited Members

Properties

Distance

distance: The total distance of this route, expressed in meters (value) and as text

[JsonPropertyName("distance")]
public Distance Distance { get; set; }

Property Value

Distance

Duration

duration: The length of time it takes to travel this route

[JsonPropertyName("duration")]
public Duration Duration { get; set; }

Property Value

Duration

DurationInTraffic

duration_in_traffic The length of time it takes to travel this route, based on current and historical traffic conditions. See the traffic_model request parameter for the options you can use to request that the returned value is optimistic, pessimistic, or a best-guess estimate.

[JsonPropertyName("duration_in_traffic")]
public Duration? DurationInTraffic { get; set; }

Property Value

Duration

Status

"status" See Status Codes for a list of possible status codes.

[JsonPropertyName("status")]
[JsonConverter(typeof(EnumMemberJsonConverter<DistanceMatrixElementStatusCodes>))]
public DistanceMatrixElementStatusCodes Status { get; set; }

Property Value

DistanceMatrixElementStatusCodes