Instance Property

speed

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

Declaration

@property(readonly, nonatomic) CLLocationSpeed speed;

Discussion

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

course

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software