Routes Preferred API 目前仅适用于部分客户。如需了解详情,请
与销售人员联系。
RouteMatrixElementCondition
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
枚举 |
ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED |
仅在元素的 status 不适用时使用。 |
ROUTE_EXISTS |
已找到路线,并为元素填写了相应的信息。 |
ROUTE_NOT_FOUND |
找不到路线。该元素中不会填写包含路线信息(如 distanceMeters 或 duration )的字段。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003e\u003ccode\u003eROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED\u003c/code\u003e is a fallback used only when the route element status is not OK.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eROUTE_EXISTS\u003c/code\u003e indicates a route was successfully found and relevant information is populated within the element.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eROUTE_NOT_FOUND\u003c/code\u003e signifies that no route could be found, leaving fields like \u003ccode\u003edistanceMeters\u003c/code\u003e and \u003ccode\u003eduration\u003c/code\u003e empty.\u003c/p\u003e\n"]]],[],null,["# RouteMatrixElementCondition\n\nThe condition of the route being returned.\n\n| Enums ||\n|----------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------|\n| `ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED` | Only used when the `status` of the element is not OK. |\n| `ROUTE_EXISTS` | A route was found, and the corresponding information was filled out for the element. |\n| `ROUTE_NOT_FOUND` | No route could be found. Fields containing route information, such as `distanceMeters` or `duration`, will not be filled out in the element. |"]]