Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


The altitude measured in meters.

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




Returns altitude as number.


The altitude measured in meters.
Positive values indicate altitudes above sea level. Negative values indicate altitudes below sea level.
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.

Returns zero if not location is available. See CoreLocation.hasLocation function.


Query altitude:

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

See also

Example Databases

Blog Entries

This function is free to use.

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

CoreLocation.SetUpdateLocationHandler - CoreLocation.authorizationStatus