Fleet Engine API for on-demand trips
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
שירותים למשתמשים בנסיעות על פי דרישה.
שירות: fleetengine.googleapis.com
כדי לקרוא לשירות הזה, מומלץ להשתמש בספריות הלקוח ש-Google מספקת. אם האפליקציה שלכם צריכה להשתמש בספריות משלכם כדי לקרוא לשירות הזה, צריך להשתמש במידע הבא כששולחים את בקשות ה-API.
מסמך Discovery
מסמך Discovery הוא מפרט שקריא למכונות, שמתאר ממשקי API ל-REST ומאפשר שימוש בהם. הוא משמש ליצירת ספריות לקוח, יישומי פלאגין ל-IDE וכלים אחרים שמקיימים אינטראקציה עם Google APIs. שירות אחד יכול לספק כמה מסמכי גילוי. השירות הזה מספק את מסמך הגילוי הבא:
נקודת קצה לשירות
נקודת קצה לשירות היא כתובת URL בסיסית שצוינה בה כתובת הרשת של שירות API. לשירות אחד יכולות להיות כמה נקודות קצה של שירות. לשירות הזה יש את נקודת הקצה הבאה, וכל מזהי ה-URI שבהמשך הם יחסיים לנקודת הקצה הזו:
https://fleetengine.googleapis.com
Methods |
report |
POST /v1/{name=providers/*/billableTrips/*}:report
דיווח על שימוש בנסיעות לחיוב. |
Methods |
create |
POST /v1/{parent=providers/*}/trips
יוצרת נסיעה ב-Fleet Engine ומחזירה את הנסיעה החדשה. |
delete |
DELETE /v1/{name=providers/*/trips/*}
מחיקה של נסיעה אחת. |
get |
GET /v1/{name=providers/*/trips/*}
קבלת מידע על נסיעה אחת. |
search |
POST /v1/{parent=providers/*}/trips:search
הצגת כל הנסיעות ברכב ספציפי. |
update |
PUT /v1/{name=providers/*/trips/*}
עדכון נתוני הנסיעה. |
Methods |
create |
POST /v1/{parent=providers/*}/vehicles
יצירת רכב חדש שמשויך לספק שירותי שיתוף נסיעות או משלוחים על פי דרישה. |
delete |
DELETE /v1/{name=providers/*/vehicles/*}
מחיקה של רכב מ-Fleet Engine. |
get |
GET /v1/{name=providers/*/vehicles/*}
הפונקציה מחזירה רכב מ-Fleet Engine. |
list |
GET /v1/{parent=providers/*}/vehicles
הפונקציה מחזירה רשימה מחולקת לדפים של כלי רכב המשויכים לספק שתואמים לאפשרויות הבקשה. |
search |
POST /v1/{parent=providers/*}/vehicles:search
הפונקציה מחזירה רשימה של רכבים שתואמים לאפשרויות הבקשה. |
update |
PUT /v1/{name=providers/*/vehicles/*}
כתיבת נתוני הרכב המעודכנים ב-Fleet Engine. |
updateAttributes |
POST /v1/{name=providers/*/vehicles/*}:updateAttributes
עדכון חלקי של מאפייני הרכב. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-31 (שעון UTC).
[null,null,["עדכון אחרון: 2025-08-31 (שעון UTC)."],[[["\u003cp\u003eFleet Engine provides REST resources to manage trips, vehicles, and billable trips for on-demand services.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can create, retrieve, update, and search for trips and vehicles using these resources.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ev1.providers.billableTrips\u003c/code\u003e resource enables reporting billable trip usage.\u003c/p\u003e\n"],["\u003cp\u003eGoogle-provided client libraries are recommended for interacting with the service, or the service endpoint can be used for custom integrations.\u003c/p\u003e\n"],["\u003cp\u003eA discovery document is available to understand and consume the REST APIs.\u003c/p\u003e\n"]]],[],null,["# Fleet Engine API for on-demand trips\n\nServices for on-demand trips users.\n\n- [REST Resource: v1.providers.billableTrips](#v1.providers.billableTrips)\n- [REST Resource: v1.providers.trips](#v1.providers.trips)\n- [REST Resource: v1.providers.vehicles](#v1.providers.vehicles)\n\nService: fleetengine.googleapis.com\n-----------------------------------\n\nTo call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.\n\n### Discovery document\n\nA [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:\n\n- \u003chttps://fleetengine.googleapis.com/$discovery/rest?version=v1\u003e\n\n### Service endpoint\n\nA [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:\n\n- `https://fleetengine.googleapis.com`\n\nREST Resource: [v1.providers.billableTrips](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.billableTrips)\n--------------------------------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------|\n| [report](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.billableTrips/report) | `POST /v1/{name=providers/*/billableTrips/*}:report` Report billable trip usage. |\n\nREST Resource: [v1.providers.trips](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.trips)\n----------------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|----------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------|\n| [create](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.trips/create) | `POST /v1/{parent=providers/*}/trips` Creates a trip in the Fleet Engine and returns the new trip. |\n| [delete](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.trips/delete) | `DELETE /v1/{name=providers/*/trips/*}` Deletes a single Trip. |\n| [get](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.trips/get) | `GET /v1/{name=providers/*/trips/*}` Get information about a single trip. |\n| [search](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.trips/search) | `POST /v1/{parent=providers/*}/trips:search` Get all the trips for a specific vehicle. |\n| [update](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.trips/update) | `PUT /v1/{name=providers/*/trips/*}` Updates trip data. |\n\nREST Resource: [v1.providers.vehicles](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.vehicles)\n----------------------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|---------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| [create](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.vehicles/create) | `POST /v1/{parent=providers/*}/vehicles` Instantiates a new vehicle associated with an on-demand rideshare or deliveries provider. |\n| [delete](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.vehicles/delete) | `DELETE /v1/{name=providers/*/vehicles/*}` Deletes a Vehicle from the Fleet Engine. |\n| [get](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.vehicles/get) | `GET /v1/{name=providers/*/vehicles/*}` Returns a vehicle from the Fleet Engine. |\n| [list](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.vehicles/list) | `GET /v1/{parent=providers/*}/vehicles` Returns a paginated list of vehicles associated with a provider that match the request options. |\n| [search](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.vehicles/search) | `POST /v1/{parent=providers/*}/vehicles:search` Returns a list of vehicles that match the request options. |\n| [update](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.vehicles/update) | `PUT /v1/{name=providers/*/vehicles/*}` Writes updated vehicle data to the Fleet Engine. |\n| [updateAttributes](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.vehicles/updateAttributes) | `POST /v1/{name=providers/*/vehicles/*}:updateAttributes` Partially updates a vehicle's attributes. |"]]