The latitude, longitude, and course information reported by the system.
- iOS 2.0+
- macOS 10.6+
- tvOS 9.0+
- watchOS 2.0+
- Core Location
CLLocation object represents the location data generated by a
CLLocation 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.
Typically, you do not create instances of this class yourself. A
CLLocation object delivers location objects to its delegate as part of the normal location update process. You can also retrieve the most recent location object from the
location property of the location manager itself. 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.