Fleet Engine API for on-demand trips
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Các dịch vụ dành cho người dùng đặt chuyến đi theo yêu cầu.
Dịch vụ: fleetengine.googleapis.com
Để gọi dịch vụ này, bạn nên sử dụng thư viện ứng dụng do Google cung cấp. Nếu ứng dụng của bạn cần sử dụng thư viện của riêng mình để gọi dịch vụ này, hãy sử dụng thông tin sau khi bạn tạo yêu cầu API.
Tài liệu khám phá
Tài liệu khám phá là một bản đặc tả có thể đọc được bằng máy để mô tả và sử dụng các API REST. Thư viện này dùng để tạo thư viện ứng dụng, trình bổ trợ IDE và các công cụ khác tương tác với API của Google. Một dịch vụ có thể cung cấp nhiều tài liệu khám phá. Dịch vụ này cung cấp tài liệu khám phá sau:
Điểm cuối dịch vụ
Điểm cuối của dịch vụ là một URL cơ sở chỉ định địa chỉ mạng của một dịch vụ API. Một dịch vụ có thể có nhiều điểm cuối dịch vụ. Dịch vụ này có điểm cuối dịch vụ sau và tất cả URI dưới đây đều liên quan đến điểm cuối dịch vụ này:
https://fleetengine.googleapis.com
Phương thức |
report |
POST /v1/{name=providers/*/billableTrips/*}:report
Báo cáo mức sử dụng chuyến đi có thể tính phí. |
Phương thức |
create |
POST /v1/{parent=providers/*}/trips tạo một chuyến đi trong Công cụ quản lý đội xe và trả về chuyến đi mới. |
delete |
DELETE /v1/{name=providers/*/trips/*}
Xoá một Chuyến đi. |
get |
GET /v1/{name=providers/*/trips/*}
Nhận thông tin về một chuyến đi. |
search |
POST /v1/{parent=providers/*}/trips:search
Lấy tất cả các chuyến đi của một xe cụ thể. |
update |
PUT /v1/{name=providers/*/trips/*}
Cập nhật dữ liệu chuyến đi. |
Phương thức |
create |
POST /v1/{parent=providers/*}/vehicles
Tạo bản sao cho một chiếc xe mới liên kết với một nhà cung cấp dịch vụ đi chung xe hoặc giao hàng theo yêu cầu. |
delete |
DELETE /v1/{name=providers/*/vehicles/*}
Xoá Xe khỏi Công cụ quản lý đội xe. |
get |
GET /v1/{name=providers/*/vehicles/*}
Trả về một xe từ Công cụ quản lý đội xe. |
list |
GET /v1/{parent=providers/*}/vehicles
Trả về danh sách phân trang các xe được liên kết với một nhà cung cấp khớp với các tuỳ chọn yêu cầu. |
search |
POST /v1/{parent=providers/*}/vehicles:search
Trả về danh sách các phương tiện khớp với các tuỳ chọn yêu cầu. |
update |
PUT /v1/{name=providers/*/vehicles/*}
Ghi dữ liệu xe đã cập nhật vào Công cụ quản lý đội xe. |
updateAttributes |
POST /v1/{name=providers/*/vehicles/*}:updateAttributes
Cập nhật một phần các thuộc tính của xe. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-08-31 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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. |"]]