Disable location updates

When the driver finishes their shift, you can stop location updates and mark the vehicle as offline by calling DeliveryVehicleReporter.disableLocationTracking() or RidesharingVehicleReporter.disableLocationTracking().

This call schedules one final immediate update to Fleet Engine to indicate that the vehicle is offline. This update does not contain the driver's location.

Set the vehicle state to offline

To mark the vehicle as unavailable in vehicle searches, you can set the vehicle state as OFFLINE or disable location updates. You can mark a vehicle as OFFLINE when you have not yet enabled location updates or when you have explicitly disabled updates. The Driver SDK communicates the vehicle as offline to Fleet Engine immediately.