RouteTravelMode
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
用于指定出行方式的一组值。注意:WALK
、BICYCLE
和 TWO_WHEELER
路线尚处于 Beta 版阶段,有时可能会缺少明确的人行道、人行道或自行车道。您必须针对应用中显示的所有步行、骑车和双轮路线向用户显示此警告。
枚举 |
TRAVEL_MODE_UNSPECIFIED |
未指定出行方式。默认为 DRIVE 。 |
DRIVE |
乘载客旅行。 |
BICYCLE |
骑自行车旅行。 |
WALK |
步行旅行。 |
TWO_WHEELER |
双轮机动车。例如摩托车。请注意,这与涵盖人力模式的 BICYCLE 出行方式不同。 |
TRANSIT |
搭乘公共交通工具出行(如有)。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003eTravel modes include driving, bicycling, walking, two-wheeled vehicles, and transit, with driving as the default if unspecified.\u003c/p\u003e\n"],["\u003cp\u003eWalking, bicycling, and two-wheeler routes are in beta and may have incomplete pedestrian or cycling paths, requiring a user warning.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTWO_WHEELER\u003c/code\u003e refers to motorized two-wheelers like motorcycles, distinct from the human-powered \u003ccode\u003eBICYCLE\u003c/code\u003e mode.\u003c/p\u003e\n"]]],["The content defines travel modes, including `DRIVE`, `BICYCLE`, `WALK`, `TWO_WHEELER`, and `TRANSIT`. `WALK`, `BICYCLE`, and `TWO_WHEELER` are in beta and may lack clear paths, requiring a warning display to users. `TRAVEL_MODE_UNSPECIFIED` defaults to `DRIVE`. `TWO_WHEELER` refers to motorized two-wheeled vehicles, distinguishing it from human-powered `BICYCLE` travel. Each mode specifies the means of travel.\n"],null,["# RouteTravelMode\n\nA set of values used to specify the mode of travel. NOTE: `WALK`, `BICYCLE`, and `TWO_WHEELER` routes are in beta and might sometimes be missing clear sidewalks, pedestrian paths, or bicycling paths. You must display this warning to the user for all walking, bicycling, and two-wheel routes that you display in your app.\n\n| Enums ||\n|---------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| `TRAVEL_MODE_UNSPECIFIED` | No travel mode specified. Defaults to `DRIVE`. |\n| `DRIVE` | Travel by passenger car. |\n| `BICYCLE` | Travel by bicycle. |\n| `WALK` | Travel by walking. |\n| `TWO_WHEELER` | Two-wheeled, motorized vehicle. For example, motorcycle. Note that this differs from the `BICYCLE` travel mode which covers human-powered mode. |\n| `TRANSIT` | Travel by public transit routes, where available. |"]]