Class DirectionsResponse
- Namespace
- GoogleMapsApi.Entities.Directions.Response
- Assembly
- GoogleMapsApi.dll
Response from the Google Directions API containing one or more computed routes from origin to destination.
public class DirectionsResponse : IResponseFor<DirectionsRequest>
- Inheritance
-
DirectionsResponse
- Implements
- Inherited Members
Properties
ErrorMessage
Error message received from the server when the call fails
[JsonPropertyName("error_message")]
public string ErrorMessage { get; set; }
Property Value
- string
Error message
Routes
"routes" contains an array of routes from the origin to the destination. See Routes below.
[JsonPropertyName("routes")]
public IEnumerable<Route>? Routes { get; set; }
Property Value
Status
"status" contains metadata on the request. See Status Codes below.
[JsonPropertyName("status")]
[JsonConverter(typeof(EnumMemberJsonConverter<DirectionsStatusCodes>))]
public DirectionsStatusCodes Status { get; set; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.