Skip to content

Commit

Permalink
docs: add documentation for ARMA filter
Browse files Browse the repository at this point in the history
  • Loading branch information
AustinHaigh authored and petermetz committed May 12, 2019
1 parent 725ad2b commit f153474
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
* Region Monitoring (or geo fencing), works in all app states.
* Advertising device as an iBeacon

#### Features exclusive to Android
* ARMA filter for distance calculations

### Installation

```
Expand Down Expand Up @@ -348,6 +351,12 @@ cordova.plugins.locationManager.startMonitoringForRegion(beaconRegion)

```

##### Enable ARMA filter for distance calculations (Android only)

The underlying library uses the moving average to calculate distance by default, but an ARMA filter can be enabled which will weigh more recent measurements higher than older measurements. It can be enabled by adding the following preference to your `config.xml` file:

```<preference name="com.unarin.cordova.beacon.android.altbeacon.EnableArmaFilter" value="true" />```

## Contributions

> Contributions are welcome at all times, please make sure that the tests are running without errors
Expand Down

0 comments on commit f153474

Please sign in to comment.