Disable location updates
Stay organized with collections
Save and categorize content based on your preferences.
When the driver finishes their shift, you can disable location updates for a
vehicle by setting locationTrackingEnabled
to NO
.
Swift
vehicleReporter.locationTrackingEnabled = false
Objective-C
_vehicleReporter.locationTrackingEnabled = NO
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eVehicle location tracking can be disabled by setting \u003ccode\u003elocationTrackingEnabled\u003c/code\u003e to \u003ccode\u003eNO\u003c/code\u003e or \u003ccode\u003efalse\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis action is typically performed at the end of a driver's shift to halt location updates.\u003c/p\u003e\n"]]],[],null,["# Disable location updates\n\nWhen the driver finishes their shift, you can disable location updates for a\nvehicle by setting `locationTrackingEnabled` to `NO`. \n\n### Swift\n\n vehicleReporter.locationTrackingEnabled = false\n\n### Objective-C\n\n _vehicleReporter.locationTrackingEnabled = NO"]]