Creates a location object with the specified coordinate and altitude information.
- iOS 2.0+
- macOS 10.6+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Location
A coordinate structure containing the latitude and longitude values.
The altitude value for the location.
The radius of uncertainty for the geographical coordinate, measured in meters. Specify a negative number to indicate that the geographical coordinate is invalid.
The accuracy of the altitude value, measured in meters. Specify a negative number to indicate that the altitude is invalid.
The time to associate with the location object. Typically, you specify the current time.
A location object initialized with the specified geographical coordinate and altitude information.
Use this method to create location objects that are not necessarily based on the user's current location.Typically, you acquire location objects from your
CLLocation object, which returns the user's actual location. However, you might use this method when you want to represent any location on a map. For example, you might create an object to represent the user's intended destination.
This method records the values you provide, and it initializes other properties to appropriate default values. Specifically, this method sets the speed and course values to