'כלי רכב דו-גלגלי' מתייחס לכלי רכב ממונעים עם שני גלגלים (לדוגמה, אופנועים).
מצב הנסיעה על כלי רכב דו-גלגלי שונה ממצב הנסיעה על אופניים, שהוא מצב נסיעה שמופעל על ידי אדם.
כדי לציין את המצב, משתמשים במאפיין travelMode של הבקשה. הערכים האפשריים של המאפיין הזה מוגדרים על ידי ספירונים ב-RouteTravelMode (ב-REST) וב-RouteTravelMode (ב-gRPC).
ציון מצב הנסיעה בכלי דו-גלגלי
כשאתם קוראים ל-Routes API, אתם מציינים את ערך המניין RouteTravelMode כדי לציין את אופן הנסיעה.
בדוגמה הבאה מוסבר איך להגדיר את אופן הנסיעה ל-TWO_WHEELER
בגוף הבקשה של method computeRoutes (REST). אפשר גם לציין את האפשרות הזו ל-method ComputeRoutes (gRPC).
בדוגמה הזו, מחשבים את המסלול בין שני מיקומים בהודו שצוינו באמצעות קודי Plus:
[null,null,["עדכון אחרון: 2025-02-06 (שעון UTC)."],[[["The `TWO_WHEELER` travel mode is used to request routes specifically for motorcycles and similar motorized two-wheeled vehicles, distinct from bicycles."],["Using the `TWO_WHEELER` travel mode will result in higher billing rates compared to other travel modes."],["Routes generated for two-wheeled vehicles are in beta and might not always include optimal paths for motorcycles; it's crucial to display a warning to users about this."],["You can specify the `TWO_WHEELER` travel mode within the `travelMode` property of your Routes API request to obtain routes optimized for motorcycles."],["Supported regions for two-wheeled vehicle routes may vary, so consult the documentation for coverage details."]]],[]]