Table of Contents

Class RoutesResponse

Namespace
GoogleMapsApi.Entities.Routes.Response
Assembly
GoogleMapsApi.dll

Response from the Google Routes API computeRoutes endpoint.

public sealed class RoutesResponse : IResponseFor<RoutesRequest>
Inheritance
RoutesResponse
Implements
Inherited Members

Remarks

Which top-level fields are populated depends on what was requested via FieldMask. Fields outside the mask are returned as null.

Properties

FallbackInfo

Populated when the request asked for traffic-aware routing but the API fell back to a different mode (e.g. live traffic unavailable).

[JsonPropertyName("fallbackInfo")]
public FallbackInfo? FallbackInfo { get; set; }

Property Value

FallbackInfo

GeocodingResults

Diagnostic information about waypoint geocoding.

[JsonPropertyName("geocodingResults")]
public GeocodingResults? GeocodingResults { get; set; }

Property Value

GeocodingResults

Routes

Computed routes. If ComputeAlternativeRoutes was true, the API may return up to two additional alternatives.

[JsonPropertyName("routes")]
public List<Route>? Routes { get; set; }

Property Value

List<Route>