Routes Preferred API 目前仅适用于部分客户。如需了解详情,请
与销售人员联系。
Units
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
枚举 |
UNITS_UNSPECIFIED |
未指定测量单位。默认值为从请求推断出的计量单位。 |
METRIC |
公制度量单位。 |
IMPERIAL |
英制。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-29。
[null,null,["最后更新时间 (UTC):2025-08-29。"],[[["\u003cp\u003e\u003ccode\u003eUNITS_UNSPECIFIED\u003c/code\u003e defaults to the unit of measure inferred from the request, allowing flexibility.\u003c/p\u003e\n"],["\u003cp\u003eUsers can explicitly define units of measure as either \u003ccode\u003eMETRIC\u003c/code\u003e or \u003ccode\u003eIMPERIAL\u003c/code\u003e for display purposes.\u003c/p\u003e\n"],["\u003cp\u003eThis setting provides control over how measurements are presented in the display, improving user experience.\u003c/p\u003e\n"]]],["The provided content defines the unit of measure for display, offering three options: `UNITS_UNSPECIFIED`, `METRIC`, and `IMPERIAL`. `UNITS_UNSPECIFIED` indicates no specified unit, defaulting to the request's inferred unit. `METRIC` sets the units to the metric system, and `IMPERIAL` sets them to the English, or imperial, system. These enums allow precise control over measurement units.\n"],null,["# Units\n\nA set of values that specify the unit of measure used in the display.\n\n| Enums ||\n|---------------------|--------------------------------------------------------------------------------------------|\n| `UNITS_UNSPECIFIED` | Units of measure not specified. Defaults to the unit of measure inferred from the request. |\n| `METRIC` | Metric units of measure. |\n| `IMPERIAL` | Imperial (English) units of measure. |"]]