Platforms to show: All Mac Windows Linux Cross-Platform

Back to CLLocationMBS class.

CLLocationMBS.altitude as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreLocation MBS MacFrameworks Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
The altitude in meters.
Example
dim c as new CLLocationMBS(1,2,3,4,5,nil)

MsgBox str(c.altitude)

Positive values indicate altitudes above sea level. Negative values indicate altitudes below sea level.
(Read only property)

CLLocationMBS.course as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreLocation MBS MacFrameworks Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
The direction in which the device is travelling.
Example
dim c as CLLocationManagerMBS // your global instance

dim l as CLLocationMBS = c.location

if l<>Nil then
MsgBox str(l.course)
end if

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.
(Read only property)

Some examples using this property:

CLLocationMBS.DateTime as DateTime

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreLocation MBS MacFrameworks Plugin 20.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The time at which this location was determined.

(Read only property)

CLLocationMBS.description as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreLocation MBS MacFrameworks Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the location data in a formatted text string.
Example
dim c as new CLLocationMBS(50.439722, 7.40167)

MsgBox C.description
// shows for example:
// <+50.43972200, +7.40167000> +/- 0.00m (speed -1.00 mps / course -1.00) @ 2009-08-29 14:22:39 +0200

A string of the form "<<latitude>, <longitude>> +/- <accuracy>m (speed <speed> kph / heading <heading>) @ <date-time>", where <latitude>, <longitude>, <accuracy>, <speed>, and <heading> are formatted floating point numbers and <date-time> is a formatted date string that includes date, time, and time zone information.

The returned string is intended for display purposes only.
(Read only property)

CLLocationMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreLocation MBS MacFrameworks Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
The internal reference to the CLLocation object.
Example
dim c as CLLocationManagerMBS // your global instance

dim l as CLLocationMBS = c.location

if l<>Nil then
MsgBox str(l.handle)
end if

(Read and Write property)

CLLocationMBS.horizontalAccuracy as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreLocation MBS MacFrameworks Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
The radius of uncertainty for the location, measured in meters.
Example
dim c as CLLocationManagerMBS // your global instance

dim l as CLLocationMBS = c.location

if l<>Nil then
MsgBox str(l.horizontalAccuracy)
end if

The coordinate's latitude and longitude identify the center of the circle and this value indicates the radius of that circle. A negative value indicates that the coordinate's latitude and longitude are invalid.
(Read only property)

Some examples using this property:

CLLocationMBS.latitude as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreLocation MBS MacFrameworks Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
The geographical coordinate information.
Example
dim c as new CLLocationMBS(50.413333, 7.32972)

MsgBox str(C.latitude) // shows 50.413333

(Read only property)

CLLocationMBS.longitude as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreLocation MBS MacFrameworks Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
The geographical coordinate information.
Example
dim c as new CLLocationMBS(50.413333, 7.32972)

MsgBox str(C.longitude) // shows 7.32972

(Read only property)

CLLocationMBS.speed as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreLocation MBS MacFrameworks Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
The instantaneous speed of the device in meters per second.
Example
dim c as CLLocationManagerMBS // your global instance

dim l as CLLocationMBS = c.location

if l<>Nil then
MsgBox str(l.speed)
end if

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.
(Read only property)

CLLocationMBS.timestamp as date

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreLocation MBS MacFrameworks Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The time at which this location was determined.
Example
dim c as CLLocationManagerMBS // your global instance

dim l as CLLocationMBS = c.location

if l<>Nil then
MsgBox l.timestamp.SQLDateTime
end if

(Read only property)

CLLocationMBS.verticalAccuracy as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreLocation MBS MacFrameworks Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
The accuracy of the altitude value in meters.
Example
dim c as CLLocationManagerMBS // your global instance

dim l as CLLocationMBS = c.location

if l<>Nil then
MsgBox str(l.verticalAccuracy)
end if

The value in the altitude property could be plus or minus the value indicated by this property. A negative value indicates that the altitude value is invalid.
(Read only property)

Some examples using this property:

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


The biggest plugin in space...