ComputeRoutesResponse

  • ComputeRoutes response provides route options and fallback information in JSON format.

  • routes field contains an array of computed routes, with the first one being the most recommended.

  • fallbackInfo field provides details when the server uses a fallback computation method.

  • If the routes array is empty, it signifies that no route could be found for the given request.

ComputeRoutes the response message.

JSON representation
{
  "routes": [
    {
      object (Route)
    }
  ],
  "fallbackInfo": {
    object (FallbackInfo)
  }
}
Fields
routes[]

object (Route)

Contains an array of computed routes (up to three) when you specify compute_alternatives_routes, and contains just one route when you don't. When this array contains multiple entries, the first one is the most recommended route. If the array is empty, then it means no route could be found.

fallbackInfo

object (FallbackInfo)

In some cases when the server is not able to compute the route results with all of the input preferences, it may fallback to using a different way of computation. When fallback mode is used, this field contains detailed info about the fallback response. Otherwise this field is unset.