Table of Contents

Class DistanceMatrixResponse

Namespace
GoogleMapsApi.Entities.DistanceMatrix.Response
Assembly
GoogleMapsApi.dll

Response from the Google Distance Matrix API containing travel distance and duration between each origin and destination.

public class DistanceMatrixResponse : IResponseFor<DistanceMatrixRequest>
Inheritance
DistanceMatrixResponse
Implements
Inherited Members

Properties

DestinationAddresses

[JsonPropertyName("destination_addresses")]
public IEnumerable<string> DestinationAddresses { get; set; }

Property Value

IEnumerable<string>

ErrorMessage

[JsonPropertyName("error_message")]
public string ErrorMessage { get; set; }

Property Value

string

OriginAddresses

[JsonPropertyName("origin_addresses")]
public IEnumerable<string> OriginAddresses { get; set; }

Property Value

IEnumerable<string>

Rows

[JsonPropertyName("rows")]
public IEnumerable<Row> Rows { get; set; }

Property Value

IEnumerable<Row>

Status

"status" contains metadata on the request. See Status Codes below.

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

Property Value

DistanceMatrixStatusCodes