Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

CoreLocation.course

Returns the direction in which the device is traveling.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CoreLocation 2.7 Yes No Yes, macOS only No Yes

MBS( "CoreLocation.course" )

Parameters

none

Result

Returns direction number.

Description

Returns the direction in which the device is traveling.
Course values are measured in degrees starting at due north and continuing clockwise around the compass. Thus, north is 0 degrees, east is 90 degrees, south is 180 degrees, and so on. Course values may not be available on all devices. A negative value indicates that the direction is invalid.
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.

See also

Example Databases


CoreLocation.altitude   -   CoreLocation.description

Feedback: Report problem or ask question.




Links
MBS Xojo blog