位置情報の更新を無効にする
ドライバーがシフトを終了したら、DeliveryVehicleReporter.disableLocationTracking()
または RidesharingVehicleReporter.disableLocationTracking()
を呼び出して位置情報の更新を停止し、車両をオフラインとしてマークできます。
この呼び出しにより、車両がオフラインであることを示す最後の即時更新が Fleet Engine にスケジュールされます。この更新にはドライバーの位置情報は含まれません。
車両の状態をオフラインに設定する
車両検索で車両を「利用不可」としてマークするには、車両の状態を OFFLINE
に設定するか、位置情報の更新を無効にします。位置情報の更新をまだ有効にしていない場合や、更新を明示的に無効にしている場合は、車両に OFFLINE
のマークを付けることができます。Driver SDK は、車両がオフラインであることを Fleet Engine に直ちに通知します。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-02-28 UTC。
[null,null,["最終更新日 2025-02-28 UTC。"],[[["Location updates can be stopped and the vehicle marked offline at the end of a driver's shift using specific function calls (`DeliveryVehicleReporter.disableLocationTracking()` or `RidesharingVehicleReporter.disableLocationTracking()`)."],["This action triggers a final update to Fleet Engine, marking the vehicle as offline without including the driver's location."],["Setting the vehicle state to `OFFLINE` or disabling location updates prevents the vehicle from appearing in vehicle searches."],["Vehicles can be marked as `OFFLINE` before or after enabling/disabling location updates, and the Driver SDK immediately communicates this status to Fleet Engine."]]],[]]