RouteTravelMode
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
קבוצה של ערכים שמשמשים לציון אמצעי התחבורה. הערה: המסלולים WALK
, BICYCLE
ו-TWO_WHEELER
נמצאים בגרסת בטא, ולפעמים חסרים בהם מדרכות ברורות, שבילים להולכי רגל או שבילי רכיבה על אופניים. עליך להציג אזהרה זו למשתמש עבור כל מסלולי ההליכה, הרכיבה על אופניים והדו-גלגלים שאתה מציג באפליקציה.
טיפוסים בני מנייה (enum) |
TRAVEL_MODE_UNSPECIFIED |
לא צוין מצב נסיעה. ברירת המחדל היא DRIVE . |
DRIVE |
נוסעים ברכב נוסע. |
BICYCLE |
רכיבה על אופניים. |
WALK |
הולכים בהליכה. |
TWO_WHEELER |
כלי רכב דו-גלגלי. לדוגמה, אופנוע. חשוב לשים לב שהמצב הזה שונה ממצב הנסיעה של BICYCLE , שמכסה את מצב הנהיגה האנושית. |
TRANSIT |
נוסעים במסלולי תחבורה ציבורית, במקומות שבהם הם זמינים. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-31 (שעון UTC).
[null,null,["עדכון אחרון: 2025-08-31 (שעון UTC)."],[[["\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. |"]]