Routes Preferred API 目前仅适用于部分客户。如需了解详情,请
与销售人员联系。
RouteTravelMode
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
枚举 |
TRAVEL_MODE_UNSPECIFIED |
未指定出行方式。默认为 DRIVE 。 |
DRIVE |
乘坐载客车辆。 |
BICYCLE |
骑自行车旅行。 |
WALK |
步行出行。 |
TWO_WHEELER |
双轮机动车。例如,摩托车。请注意,这与涵盖人力驱动模式的 BICYCLE 出行方式不同。 |
TAXI |
乘坐持证出租车,可能会让车辆在某些区域指定的出租车道行驶。 出租车模式是一项实验性功能。如果客户在某个无法提供出租车道数据的城市查询出租车路线,系统会返回一条驾车路线。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-29。
[null,null,["最后更新时间 (UTC):2025-08-29。"],[[["\u003cp\u003eSpecifies the mode of travel for a journey, defaulting to driving if unspecified.\u003c/p\u003e\n"],["\u003cp\u003eIncludes common options like driving, bicycling, walking, and two-wheeler motorized travel.\u003c/p\u003e\n"],["\u003cp\u003eFeatures a specialized mode for taxis, potentially utilizing designated lanes for optimized routes.\u003c/p\u003e\n"],["\u003cp\u003eOffers 'TWO_WHEELER' as a distinct category for motorized two-wheelers, separate from bicycles.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes 'TRAVEL_MODE_UNSPECIFIED' to signify the absence of a specified mode, automatically reverting to 'DRIVE'.\u003c/p\u003e\n"]]],[],null,["# RouteTravelMode\n\nA set of values used to specify the mode of travel.\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| `TAXI` | Travel by licensed taxi, which may allow the vehicle to travel on designated taxi lanes in some areas. TAXI mode is an experimental feature. If customer requests TAXI route in a city where taxi lane data is not available, a DRIVE route is returned. |"]]