---
title: stopUpdatingLocation()
framework: corelocation
role: symbol
role_heading: Instance Method
path: corelocation/cllocationmanager/stopupdatinglocation()
---

# stopUpdatingLocation()

Stops the generation of location updates.

## Declaration

```swift
func stopUpdatingLocation()
```

## Discussion

Discussion Call this method whenever your code no longer needs to receive location-related events. Disabling event delivery gives the receiver the option of disabling the appropriate hardware (and thereby saving power) when no clients need location data. You can always restart the generation of location updates by calling the startUpdatingLocation() method again.

## See Also

### Running the standard location service

- [startUpdatingLocation()](corelocation/cllocationmanager/startupdatinglocation().md)
- [requestLocation()](corelocation/cllocationmanager/requestlocation().md)
- [pausesLocationUpdatesAutomatically](corelocation/cllocationmanager/pauseslocationupdatesautomatically.md)
- [allowsBackgroundLocationUpdates](corelocation/cllocationmanager/allowsbackgroundlocationupdates.md)
- [showsBackgroundLocationIndicator](corelocation/cllocationmanager/showsbackgroundlocationindicator.md)
- [activityType](corelocation/cllocationmanager/activitytype.md)
- [CLActivityType](corelocation/clactivitytype.md)
