| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
CLGeocoder.ErrorMessage
Queries the error message of the geo coder.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| CLGeocoder | 4.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "CLGeocoder.ErrorMessage"; Geocoder ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| Geocoder | The reference number of the geocoder instance. | $Geocoder |
Result
Returns text or error.
Description
Queries the error message of the geo coder.| Error Constant | Number | Description |
|---|---|---|
| kCLErrorLocationUnknown | 0 | location is currently unknown, but CL will keep trying |
| kCLErrorDenied | 1 | Access to location or ranging has been denied by the user |
| kCLErrorNetwork | 2 | general, network-related error |
| kCLErrorHeadingFailure | 3 | heading could not be determined |
| kCLErrorRegionMonitoringDenied | 4 | Location region monitoring has been denied by the user |
| kCLErrorRegionMonitoringFailure | 5 | A registered region cannot be monitored |
| kCLErrorRegionMonitoringSetupDelayed | 6 | CL could not immediately initialize region monitoring |
| kCLErrorRegionMonitoringResponseDelayed | 7 | While events for this fence will be delivered, delivery will not occur immediately |
| kCLErrorGeocodeFoundNoResult | 8 | A geocode request yielded no result |
| kCLErrorGeocodeFoundPartialResult | 9 | A geocode request yielded a partial result |
| kCLErrorGeocodeCanceled | 10 | A geocode request was cancelled |
| kCLErrorDeferredFailed | 11 | Deferred mode failed |
| kCLErrorDeferredNotUpdatingLocation | 12 | Deferred mode failed because location updates disabled or paused |
| kCLErrorDeferredAccuracyTooLow | 13 | Deferred mode not supported for the requested accuracy |
| kCLErrorDeferredDistanceFiltered | 14 | Deferred mode does not support distance filters |
| kCLErrorDeferredCanceled | 15 | Deferred mode request canceled a previous request |
| kCLErrorRangingUnavailable | 16 | Ranging cannot be performed |
| kCLErrorRangingFailure | 17 | General ranging failure |
| kCLErrorPromptDeclined | 18 | Authorization request not presented to user |
Examples
Checks error and shows message:
If [ MBS( "CLGeocoder.Error"; $g )]
Display Dialog [ "Error"; MBS( "CLGeocoder.ErrorMessage"; $g ) ]
End If
Display Dialog [ "Error"; MBS( "CLGeocoder.ErrorMessage"; $g ) ]
End If
See also
Example Databases
This function is free to use.
Created 18th August 2014, last changed 23th February 2021