When the driver finishes their shift, you can disable location updates and take
the vehicle offline by setting locationTrackingEnabled
to false
.
Disabling location updates also sends a final vehicle update request to Fleet
Engine to set the vehicle state to GMTDVehicleState.offline
.
For special considerations on handling failures when disabling location updates,
see
updateVehicleState
.
Swift
vehicleReporter.locationTrackingEnabled = false
Objective-C
_vehicleReporter.locationTrackingEnabled = NO;