Google משתמשת בטכנולוגיית AI כדי לתרגם תוכן לשפה המועדפת עליך. בתרגומים כאלו עשויות להיות שגיאות.
מסלול לרכבים דו-גלגליים
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
ממשקי Routes Preferred API תומכים בארבעה אמצעי הגעה:
- Drive
- הליכה
- אופניים
- דו-גלגלי
רכב דו-גלגלי הוא כלי רכב ממונע עם שני גלגלים (לדוגמה, אופנוע).
מצב הנסיעה ברכב דו-גלגלי שונה ממצב הנסיעה באופניים, שמונעים על ידי כוח אנושי.
ציון מצב הנסיעה ברכב דו-גלגלי
כששולחים קריאה ל-Routes Preferred API, משתמשים בערך מספרי RouteTravelMode כדי לציין את אופן הנסיעה.
דוגמה
בדוגמה הבאה מוסבר איך להגדיר את אופן הנסיעה בגוף הבקשה של השיטה ComputeRoutes().
{
"origin":{
"location":{
"latLng":{
"latitude":37.419734,
"longitude":-122.0827784
}
}
},
"destination":{
"location":{
"latLng":{
"latitude":37.417670,
"longitude":-122.079595
}
}
},
"travelMode":"TWO_WHEELER"
}
[null,null,["עדכון אחרון: 2026-11-02 (שעון UTC)."],[],["The Routes Preferred APIs support four travel modes: Drive, Walk, Bicycle, and Two-wheeler, where Two-wheeler refers to motorized two-wheeled vehicles. To use a specific mode, utilize the `RouteTravelMode` enumeration in the API call. For example, to specify the two-wheeler mode in the `ComputeRoutes()` method request body, set the `\"travelMode\"` parameter to `\"TWO_WHEELER\"`. The two-wheeler mode is distinct from the bicycle mode, which is human-powered.\n"]]