Routes Preferred API is currently available only to select customers.
Contact sales to learn more.
ComputeRoutesResponse
Stay organized with collections
Save and categorize content based on your preferences.
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.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-23 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-23 UTC."],[[["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."]]],[]]