驱动程序 SDK 计划任务概览
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。

Driver SDK 是一种移动应用工具包,也是 Fleet Engine 的基本组件。借助此 SDK,您的司机应用既可以管理工作分配,也可以启用司机导航和路线规划功能。
准备工作
本指南假定您已阅读以下内容:
什么是用于预定任务的 Driver SDK?
Driver SDK 会将车辆位置和任务更新信息传达给 Fleet Engine,以便 Fleet Engine 管理送货车辆及其分配的送货停靠点和任务。从本质上讲,当司机开始驾驶时,该 SDK 会使用事件监听器将位置更新和经纬度坐标,以及从 Navigation SDK 获取的当前路线段和目的地发送到 Fleet Engine。
为何要使用 Driver SDK 来执行预定任务?
借助 Driver SDK,您可以更轻松地与 Fleet Engine 集成,以更新司机的路线。借助此 SDK,驾驶员可以使用单个应用来管理任务和导航,就像使用其消费者版 Google 地图一样,但无需切换到其他应用。
您可以使用 Driver SDK 执行哪些预定任务
使用 Driver SDK 执行预定任务,以便与 Fleet Engine 通信并传达以下信息:
- 地图上配送车辆的实时位置。
- 经停点的纬度/经度坐标。
- 到站点的剩余距离。
- 预计到达经停点的时间。
- 车辆需要行驶的路线,由 Navigation SDK 提供。
Driver SDK 如何处理预定任务
Driver SDK 依赖于 Navigation SDK 来获取路线信息和目的地。Driver SDK 可与您的司机应用集成,并与 Navigation SDK 配合使用,为 Fleet Engine 提供位置更新、纬度/经度坐标、剩余距离和预计到达时间 (ETA) 的数据流。所有其他车辆数据更新都必须发送到客户后端,然后由客户后端将数据中继到 Fleet Engine。

如何使用 Driver SDK 执行预定任务
选择您的平台,了解如何开始使用 Driver SDK。
后续步骤
请参阅您要设置 Driver SDK 的平台的文档:
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003eThe Driver SDK is a toolkit that enables driver apps to manage work assignments and navigation within Fleet Engine.\u003c/p\u003e\n"],["\u003cp\u003eIt facilitates communication between the driver app and Fleet Engine, sharing location and task updates for efficient delivery management.\u003c/p\u003e\n"],["\u003cp\u003eKey features include real-time location tracking, route optimization using the Navigation SDK, and seamless integration with driver workflows.\u003c/p\u003e\n"],["\u003cp\u003eTo get started, developers need to integrate the Driver SDK (Android or iOS) and configure their Google Cloud project.\u003c/p\u003e\n"],["\u003cp\u003eFor platform-specific setup instructions and further details, refer to the Android and iOS documentation provided.\u003c/p\u003e\n"]]],[],null,["The Driver SDK is a mobile app toolkit and a fundamental component of Fleet\nEngine. With this SDK, your driver app can both manage work assignments and\nenable driver navigation and routing capabilities.\n\nBefore you begin\n\nThis guide assumes you have read the following:\n\n- [Fleet Engine essentials](/maps/documentation/mobility/fleet-engine/essentials).\n- [The data model for vehicles](/maps/documentation/mobility/fleet-engine/essentials/vehicles-intro#scheduled-tasks).\n- [The data model for scheduled tasks](/maps/documentation/mobility/fleet-engine/essentials/tasks-intro#data-model).\n- [How to set up Fleet Engine](/maps/documentation/mobility/fleet-engine/essentials/set-up-fleet).\n- [How to create and use vehicles in Fleet Engine](/maps/documentation/mobility/fleet-engine/essentials/vehicles).\n\nWhat is the Driver SDK for scheduled tasks?\n\nThe Driver SDK communicates vehicle location and task updates to Fleet Engine so\nthat Fleet Engine can manage the delivery vehicles and their assigned delivery\nstops and tasks. At its core, the SDK uses an event listener to send location\nupdates and latitude/longitude coordinates, along with the current route segment\nand destination from the Navigation SDK to Fleet Engine when your driver begins\ndriving.\n\nWhy use the Driver SDK for scheduled tasks?\n\nThe Driver SDK enables easier integration with Fleet Engine for updates to the\ndriver's routes. With this SDK, your driver can use a single app to manage\nassignments and navigate as they would using their consumer version of Google\nMaps but without having to switch to another app.\n\nWhat you can do with the Driver SDK for scheduled tasks\n\nUse the Driver SDK for scheduled tasks to communicate the following with Fleet\nEngine:\n\n- Delivery vehicle's real-time position on a map.\n- Latitude/longitude coordinates for the stop.\n- Remaining distance to the stop.\n- Estimated time of arrival to the stop.\n- Route the vehicle needs to take as provided by the Navigation SDK.\n\nHow the Driver SDK for scheduled tasks works\n\nThe Driver SDK depends on the Navigation SDK for the routing information and\ndestination. Together with the information from the Navigation SDK, the Driver\nSDK integrates with your driver app and provides Fleet Engine with a stream of\nlocation updates, latitude/longitude coordinates, remaining distance, and ETAs.\nAll other vehicle data updates must be sent to the customer backend, which\nrelays the data to Fleet Engine.\n\nHow to use the Driver SDK for scheduled tasks\n\nSelect your platform to see how to start using the Driver SDK. \n\nAndroid\n\n|---|----------------------------------------------|----------------------------------------------------------------------------------------------------|\n| 1 | **Get the Driver SDK for Android** | For more information, see [Get the Driver SDK](./android/minimum-requirements). |\n| 2 | **Configure a Google Cloud console project** | For more information, see [Configure a Google Cloud console project](./android/configure-project). |\n| 3 | **Declare dependencies** | For more information, see [Declare dependencies](./android/dependencies). |\n| 4 | **Create authentication tokens** | For more information, see [Create authentication tokens](./android/authenticate). |\n| 5 | **Initialize the Driver SDK** | For more information, see [Initialize the Driver SDK](./android/initialize-sdk). |\n| 6 | **Get the vehicle ready** | For more information, see [Get the vehicle ready](./android/vehicle-ready). |\n\niOS\n\n|---|----------------------------------------------|------------------------------------------------------------------------------------------------|\n| 1 | **Get the Driver SDK for iOS** | For more information, see [Get the Driver SDK](./ios/minimum-requirements). |\n| 2 | **Configure a Google Cloud console project** | For more information, see [Configure a Google Cloud console project](./ios/configure-project). |\n| 3 | **Create authentication tokens** | For more information, see [Create authentication tokens](./ios/authenticate). |\n| 4 | **Initialize the Driver SDK** | For more information, see [Initialize the Driver SDK](./ios/initialize-sdk). |\n| 5 | **Get the vehicle ready** | For more information, see [Get the vehicle ready](./ios/vehicle-ready). |\n\nWhat's next\n\nSee the documentation for the platform on which you want to set up the Driver\nSDK:\n\n- [Android](./android/)\n- [iOS](./ios/)"]]