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 OS X v10.6 and later.
Declared In
CLLocation.h

CLLocationCoordinate2D

A structure that contains a geographical coordinate using the WGS 84 reference frame.

typedef struct {
   CLLocationDegrees latitude;
   CLLocationDegrees longitude;
} CLLocationCoordinate2D;
Fields
latitude

The latitude in degrees. Positive values indicate latitudes north of the equator. Negative values indicate latitudes south of the equator.

longitude

The 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 OS X v10.6 and later.
Declared In
CLLocation.h

CLLocationDegrees

Represents a latitude or longitude value specified in degrees.

typedef double CLLocationDegrees;
Availability
  • Available in OS X v10.6 and later.
Declared In
CLLocation.h

CLLocationDirection

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 OS X v10.6 and later.
Declared In
CLLocation.h

CLLocationDistance

A distance measurement (in meters) from an existing location.

typedef double CLLocationDistance;
Availability
  • Available in OS X v10.6 and later.
Declared In
CLLocation.h

CLLocationSpeed

Represents the speed at which the device is moving in meters per second.

typedef double CLLocationSpeed;
Availability
  • Available in OS X v10.6 and later.
Declared In
CLLocation.h