مروری بر سفرهای درخواستی درایور 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 Maps خود استفاده میکند، پیمایش کند، اما بدون نیاز به جابجایی به برنامه دیگری.
کارهایی که می توانید با Driver SDK برای سفرهای درخواستی انجام دهید
از Driver SDK برای سفرهای درخواستی برای برقراری ارتباط موارد زیر با Fleet Engine استفاده کنید:
- موقعیت بلادرنگ یک وسیله نقلیه روی نقشه
- مختصات طول و عرض جغرافیایی برای نقاط سفر ارائه شده توسط Navigation SDK.
- فاصله باقی مانده تا ایستگاه بعدی.
- زمان تخمینی رسیدن به ایستگاه بعدی.
- مسیری که وسیله نقلیه باید طی کند همانطور که توسط Navigation SDK ارائه شده است.
نحوه عملکرد Driver SDK برای سفرهای درخواستی
Driver SDK برای اطلاعات مسیریابی و مقصد به Navigation SDK بستگی دارد. همراه با اطلاعات Navigation SDK، Driver SDK با برنامه درایور شما ادغام میشود و جریانی از بهروزرسانیهای مکان، مختصات طول و عرض جغرافیایی، مسافت باقیمانده و ETA را در اختیار Fleet Engine قرار میدهد. تمام بهروزرسانیهای دیگر دادههای خودرو باید به باطن مشتری ارسال شود، که دادهها را به Fleet Engine ارسال میکند.

نحوه استفاده از Driver SDK برای سفرهای درخواستی
برای مشاهده نحوه شروع استفاده از Driver SDK، پلتفرم خود را انتخاب کنید.
بعدش چی
مستندات پلتفرمی را که میخواهید Driver SDK را روی آن تنظیم کنید، ببینید:
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-08-29 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-08-29 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThe Driver SDK is a toolkit for building driver apps that seamlessly integrate with Fleet Engine for trip management and navigation.\u003c/p\u003e\n"],["\u003cp\u003eIt enables real-time location sharing, route updates, and trip progress communication between the driver app and Fleet Engine.\u003c/p\u003e\n"],["\u003cp\u003eBy using the Driver SDK, drivers can manage assignments and navigate within a single app, enhancing efficiency and convenience.\u003c/p\u003e\n"],["\u003cp\u003eThe SDK relies on the Navigation SDK for routing information and works in conjunction with it to provide a comprehensive solution for on-demand trips.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can find platform-specific setup instructions and further details in the provided Android and iOS documentation.\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 assigned trips 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#on-demand-trips).\n- [The data model for on-demand trips](/maps/documentation/mobility/fleet-engine/essentials/trip-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 on-demand trips?\n\nThe Driver SDK communicates vehicle location and trip updates to Fleet Engine so\nthat Fleet Engine can track the vehicles and their assigned\ntrips. 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 on-demand trips?\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 on-demand trips\n\nUse the Driver SDK for on-demand trips to communicate the following with Fleet\nEngine:\n\n- A vehicle's real-time position on a map.\n- Latitude/longitude coordinates for the trip waypoints provided by the Navigation SDK.\n- Remaining distance to the next waypoint.\n- Estimated time of arrival to the next waypoint.\n- Route the vehicle needs to take as provided by the Navigation SDK.\n\nHow the Driver SDK for on-demand trips 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 on-demand trips\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| 7 | **Set the trip details** | For more information, see [Set the trip details](./android/trip-details). |\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| 6 | **Set the trip details** | For more information, see [Set the trip details](./ios/trip-details). |\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/minimum-requirements)\n- [iOS](./ios/minimum-requirements)"]]