Contents

sourceInformation

Information about the source that provides the location.

Declaration

var sourceInformation: CLLocationSourceInformation? { get }

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