CoreLocation.setDistanceFilter
------------------------------

Sets distance filter.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CoreLocation](component_CoreLocation.md) | [2.7](newinversion27.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "CoreLocation.setDistanceFilter"; Value ) 

**MBS**( **"CoreLocation.setDistanceFilter";** /\* Sets distance filter. \*/  
**$Value**) /\* The distance. Either a number of text "none".e.g. 123 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | The distance. Either a number of text "none". | 123 |

### Result

Returns OK or error.

### Description

Sets distance filter.  
Sets the minimum distance (measured in meters) a device must move laterally before an update event is generated.  
This distance is measured relative to the previously delivered location. Use the value "none" to be notified of all movements.  
The default value of this property is "none".  
### See also

- [CoreLocation.distanceFilter](CoreLocationdistanceFilter.md)

This function checks for a license.

Created 18th August 2014 , last changed 21st June 2021

  
[CoreLocation.setDesiredAccuracy](CoreLocationsetDesiredAccuracy.md) - [CoreLocation.setPurpose](CoreLocationsetPurpose.md)

[HTML Version](CoreLocationsetDistanceFilter.shtml)