Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

CoreLocation.speed

The instantaneous speed of the device in meters per second.

Component Version macOS Windows Linux Server iOS SDK
CoreLocation 2.7 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ✅ Yes
MBS( "CoreLocation.speed" )

Parameters

none

Result

Returns speed value.

Description

The instantaneous speed of the device in meters per second.
This value reflects the instantaneous speed of the device 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 subsequent location events, you should use this property for informational purposes only.
This function queries current know location. It's updated from time to time. To receive a script call when new location is available, please use CoreLocation.SetUpdateLocationHandler.

Examples

Query speed:

Set Field [ CoreLocation::speed ; MBS("CoreLocation.speed") ]

See also

Example Databases

Created 18th August 2014, last changed 13th January 2021


CoreLocation.significantLocationChangeMonitoringAvailable - CoreLocation.startMonitoringSignificantLocationChanges

Feedback: Report problem or ask question.