CLLocation object represents the location data generated by a
CLLocationManager object. This object incorporates the geographical coordinates and altitude of the device’s location along with values indicating the accuracy of the measurements and when those measurements were made. In iOS, this class also reports information about the speed and heading in which the device is moving.
- iOS 2.0+
- macOS 10.6+
- tvOS 2.0+
- watchOS 2.0+
Typically, you use a
CLLocationManager object to create instances of this class based on the last known location of the user’s device. You can create instances yourself, however, if you want to cache custom location data or get the distance between two points.
This class is designed to be used as is and should not be subclassed.