Initializes and returns a location object with the specified coordinate information.
Original signature is '- (id)initWithCoordinate:(CLLocationCoordinate2D)coordinate altitude:(CLLocationDistance)altitude horizontalAccuracy:(CLLocationAccuracy)hAccuracy verticalAccuracy:(CLLocationAccuracy)vAccuracy timestamp:(NSDate *)timestamp'
Available in Mac OS X v10.6 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public CLLocation( CLLocationCoordinate2D coordinate, double altitude, double hAccuracy, double vAccuracy, NSDate timestamp )
Public Sub New ( _ coordinate As CLLocationCoordinate2D, _ altitude As Double, _ hAccuracy As Double, _ vAccuracy As Double, _ timestamp As NSDate _ )
public: CLLocation( CLLocationCoordinate2D coordinate, double altitude, double hAccuracy, double vAccuracy, NSDate^ timestamp )
Parameters
- coordinate (CLLocationCoordinate2D)
- A coordinate structure containing the latitude and longitude values.
- altitude (Double)
- The altitude value for the location.
- hAccuracy (Double)
- The accuracy of the coordinate value. Specifying a negative number indicates that the coordinate value is invalid.
- vAccuracy (Double)
- The accuracy of the altitude value. Specifying a negative number indicates that the altitude value is invalid.
- timestamp (NSDate)
- The time to associate with the location object. Typically, you would set this to the current time.
Return Value
A location object initialized with the specified information.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)