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
ErrorMessage
[JsonPropertyName("error_message")]
public string ErrorMessage { get; set; }
Property Value
OriginAddresses
[JsonPropertyName("origin_addresses")]
public IEnumerable<string> OriginAddresses { get; set; }
Property Value
Rows
[JsonPropertyName("rows")]
public IEnumerable<Row> Rows { get; set; }
Property Value
Status
"status" contains metadata on the request. See Status Codes below.
[JsonPropertyName("status")]
[JsonConverter(typeof(EnumMemberJsonConverter<DistanceMatrixStatusCodes>))]
public DistanceMatrixStatusCodes Status { get; set; }