Routes Preferred API 目前仅适用于部分客户。如需了解详情,请
与销售人员联系。
FallbackReason
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
枚举 |
FALLBACK_REASON_UNSPECIFIED |
未指定后备原因。 |
SERVER_ERROR |
使用您的首选路线模式计算路线时发生服务器错误,但我们能够返回通过替代模式计算得出的结果。 |
LATENCY_EXCEEDED |
我们未能按您的首选路线模式按时完成计算,但可以返回通过替代模式计算出的结果。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003eFallback responses are used when the preferred routing mode encounters issues like server errors or latency exceeding limits.\u003c/p\u003e\n"],["\u003cp\u003eIf a fallback response is used, it indicates a result was successfully calculated using an alternative routing mode.\u003c/p\u003e\n"],["\u003cp\u003eThe specific reason for using a fallback response is indicated by enums like \u003ccode\u003eSERVER_ERROR\u003c/code\u003e or \u003ccode\u003eLATENCY_EXCEEDED\u003c/code\u003e.\u003c/p\u003e\n"]]],["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"],null,["# FallbackReason\n\nReasons for using fallback response.\n\n| Enums ||\n|-------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `FALLBACK_REASON_UNSPECIFIED` | No fallback reason specified. |\n| `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. |\n| `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. |"]]