Platforms to show: All Mac Windows Linux Cross-Platform
CLLocationMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | CoreLocation | MBS MacFrameworks Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
This object incorporates the geographical coordinates and altitude of the device's location along with values indicating the accuracy of the measurements and when those measurements were made. On some devices, this class also reports information about the speed and heading in which the device is moving.
Typically, you use a CLLocationManagerMBS object to create instances of this class based on the last known location of the user's device. You can create instances yourself, however, if you want to cache custom location data or get the distance between two different coordinate points.
This class is designed to be used as is and should not be subclassed.
Requires Mac OS X 10.6
- 11 properties
- property altitude as Double
- property course as Double
- property DateTime as DateTime
- property description as string
- property Handle as Integer
- property horizontalAccuracy as Double
- property latitude as Double
- property longitude as Double
- property speed as Double
- property timestamp as date
- property verticalAccuracy as Double
- 7 methods
- method Constructor(latitude as Double, longitude as Double)
- method Constructor(latitude as Double, longitude as Double, altitude as Double, horizontalAccuracy as Double, verticalAccuracy as Double, course as Double, speed as Double, timestamp as date)
- method Constructor(latitude as double, longitude as double, altitude as double, horizontalAccuracy as double, verticalAccuracy as double, course as double, speed as double, timestamp as dateTime)
- method Constructor(latitude as Double, longitude as Double, altitude as Double, horizontalAccuracy as Double, verticalAccuracy as Double, timestamp as date)
- method Constructor(latitude as double, longitude as double, altitude as double, horizontalAccuracy as double, verticalAccuracy as double, timestamp as dateTime)
- method copy as CLLocationMBS
- method distanceFromLocation(location as CLLocationMBS) as Double
- 8 shared methods
- shared method Available as boolean
- shared method kCLDistanceFilterNone as Double
- shared method kCLLocationAccuracyBest as Double
- shared method kCLLocationAccuracyBestForNavigation as Double
- shared method kCLLocationAccuracyHundredMeters as Double
- shared method kCLLocationAccuracyKilometer as Double
- shared method kCLLocationAccuracyNearestTenMeters as Double
- shared method kCLLocationAccuracyThreeKilometers as Double
This class has no sub classes.
Some methods using this class:
- CLGeocoderMBS.reverseGeocodeLocation(location as CLLocationMBS, completionHandler as CLGeocodeCompletionHandlerMBS, tag as Variant = nil)
- CLGeocoderMBS.reverseGeocodeLocation(location as CLLocationMBS, preferredLocale as NSLocaleMBS, completionHandler as CLGeocodeCompletionHandlerMBS, tag as variant = nil)
Some properties using for this class:
- CLLocationManagerMBS.location as CLLocationMBS
- CLPlacemarkMBS.location as CLLocationMBS
- MKUserLocationMBS.location as CLLocationMBS
Some events using this class:
- CLLocationManagerMBS.didUpdate(newLocation as CLLocationMBS, oldLocation as CLLocationMBS)
- CLLocationManagerMBS.didUpdateLocations(locations() as CLLocationMBS)
Some examples using this class:
- /MacFrameworks/CoreLocation/CoreLocation to find computer location
- /MacFrameworks/CoreLocation/Locate Address
- /MacFrameworks/CoreLocation/Locate Address Web
- /MacFrameworks/GeoCoder
- /MacFrameworks/MapKit/MapKit Custom Icons example
- /MacFrameworks/MapKit/MapKit Custom Image
- /MacFrameworks/MapKit/MapKit Local Search
Blog Entries
Xojo Developer Magazine
- 22.2, page 68: Find Yourself, How to determine the location of devices with MBS under Windows and Mac by Stefanie Juchmes-Simonis
- 18.6, page 71: MapKit Part 7, Implementing Maps in Xojo desktop apps with the MapKitMBS plugin by Markus Winter
- 18.3, pages 80 to 81: Xojo Maps, Part 4, Finding and Displaying Addresses with the MapKitMBS plugin by Markus Winter
Videos
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
CLLocationManagerMBS - CLMemMBS