Routes Preferred API is currently available only to select customers.
Contact sales to learn more.
FallbackReason
Stay organized with collections
Save and categorize content based on your preferences.
Reasons for using fallback response.
Enums |
FALLBACK_REASON_UNSPECIFIED |
No fallback reason specified. |
SERVER_ERROR |
A server error happened while calculating routes with your preferred routing mode, but we were able to return a result calculated by an alternative mode. |
LATENCY_EXCEEDED |
We were not able to finish the calculation with your preferred routing mode on time, but we were able to return a result calculated by an alternative mode. |
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 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[],["Fallback responses occur when the preferred routing mode fails. `SERVER_ERROR` indicates a server issue during route calculation, but an alternative mode provided a result. `LATENCY_EXCEEDED` means the preferred mode took too long, so an alternative mode was used to return a timely result. The `FALLBACK_REASON_UNSPECIFIED` enum indicates no specific reason was provided for the fallback.\n"]]