---
title: sourceInformation
framework: corelocation
role: symbol
role_heading: Instance Property
path: corelocation/cllocation/sourceinformation
---

# sourceInformation

Information about the source that provides the location.

## Declaration

```swift
var sourceInformation: CLLocationSourceInformation? { get }
```

## Discussion

Discussion This property enables developers to make better-informed decisions as to whether to treat certain locations differently, or reject potentially simulated locations that they generate during testing. An app may choose to check this property and reject locations if, for example, the isSimulatedBySoftware property is true when the developer isn’t debugging or testing the app. Use the sourceInformation property when knowing the true location of the device (within a tolerance for estimation error and horizontal/vertical accuracy) is critical.

## See Also

### Getting the location attributes

- [coordinate](corelocation/cllocation/coordinate.md)
- [altitude](corelocation/cllocation/altitude.md)
- [ellipsoidalAltitude](corelocation/cllocation/ellipsoidalaltitude.md)
- [CLLocationDistance](corelocation/cllocationdistance.md)
- [floor](corelocation/cllocation/floor.md)
- [timestamp](corelocation/cllocation/timestamp.md)
