CLGeocoder.ErrorMessage
-----------------------

Queries the error message of the geo coder.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CLGeocoder](component_CLGeocoder.md) | [4.1](newinversion41.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "CLGeocoder.ErrorMessage"; Geocoder ) 

**MBS**( **"CLGeocoder.ErrorMessage";** /\* Queries the error message of the geo coder. \*/  
**$Geocoder**) /\* The reference number of the geocoder instance. \*/ 

### 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](CLGeocoderError.md)"; $g )\]  
 Display Dialog \[ "Error"; MBS ( "CLGeocoder.ErrorMessage"; $g ) \]  
End If  
### See also

- [CLGeocoder.Error](CLGeocoderError.md)

### Example Databases

- [Mac and iOS/CoreLocation/Address Mapping](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/CoreLocation/Address%20Mapping.shtml#1ScriptAnchor_)
- [Mac and iOS/CoreLocation/CLGeocoder](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/CoreLocation/CLGeocoder.shtml#3ScriptAnchor_)

This function is free to use.

Created 18th August 2014 , last changed 23th February 2021

  
[CLGeocoder.Error](CLGeocoderError.md) - [CLGeocoder.GeocodeAddressString](CLGeocoderGeocodeAddressString.md)

[HTML Version](CLGeocoderErrorMessage.shtml)