Instance Property


The instantaneous speed of the device, measured in meters per second.


var speed: CLLocationSpeed { get }


This value reflects the instantaneous speed of the device as it moves in the direction of its current heading. A negative value indicates an invalid speed. Because the actual speed can change many times between the delivery of location events, use this property for informational purposes only.

Special Considerations

In iOS, this property is declared as nonatomic. In macOS, it is declared as atomic.

See Also

Getting Speed and Course Information

var course: CLLocationDirection

The direction in which the device is traveling, measured in degrees and relative to due north.