Core Location Data Types Reference
| Framework | CoreLocation/CoreLocation.h |
| Declared in | CLLocation.h |
Overview
This document describes the data types found in the Core Location framework.
Data Types
CLLocationAccuracy
Represents the accuracy of a coordinate value in meters.
typedef double CLLocationAccuracy;
Availability
- Available in iOS 2.0 and later.
Declared In
CLLocation.hCLLocationCoordinate2D
A structure that contains a geographical coordinate using the WGS 84 reference frame.
typedef struct {
CLLocationDegrees latitude;
CLLocationDegrees longitude;
} CLLocationCoordinate2D;
Fields
latitudeThe latitude in degrees. Positive values indicate latitudes north of the equator. Negative values indicate latitudes south of the equator.
longitudeThe longitude in degrees. Measurements are relative to the zero meridian, with positive values extending east of the meridian and negative values extending west of the meridian.
Availability
- Available in iOS 2.0 and later.
Declared In
CLLocation.hCLLocationDegrees
Represents a latitude or longitude value specified in degrees.
typedef double CLLocationDegrees;
Availability
- Available in iOS 2.0 and later.
Declared In
CLLocation.hCLLocationDirection
Represents a direction that is measured in degrees relative to true north.
typedef double CLLocationDirection;
Discussion
Direction values are measured in degrees starting at due north and continue clockwise around the compass. Thus, north is 0 degrees, east is 90 degrees, south is 180 degrees, and so on. A negative value indicates an invalid direction.
Availability
- Available in iOS 2.2 and later.
Declared In
CLLocation.hCLLocationDistance
A distance measurement (in meters) from an existing location.
typedef double CLLocationDistance;
Availability
- Available in iOS 2.0 and later.
Declared In
CLLocation.hCLLocationSpeed
Represents the speed at which the device is moving in meters per second.
typedef double CLLocationSpeed;
Availability
- Available in iOS 2.2 and later.
Declared In
CLLocation.h© 2010 Apple Inc. All Rights Reserved. (Last updated: 2010-09-16)