RouteTravelMode
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
用來指定交通方式的一組值。注意:WALK
、BICYCLE
和 TWO_WHEELER
路線目前仍為 Beta 版,有時可能會缺少明確的人行道、人行道或單車道。您必須針對向使用者顯示的所有步行、單車和機車路線,向使用者顯示這則警告。
列舉 |
TRAVEL_MODE_UNSPECIFIED |
未指定交通方式。預設值為 DRIVE 。 |
DRIVE |
旅客搭乘的車輛。 |
BICYCLE |
騎單車。 |
WALK |
散步, |
TWO_WHEELER |
雙輪驅動車輛。例如摩托車。請注意,這與採用人體模式的 BICYCLE 交通方式不同。 |
TRANSIT |
根據大眾運輸路線 (如有) 搭乘大眾運輸工具。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-31 (世界標準時間)。
[null,null,["上次更新時間: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. |"]]