Proximi.io Processor
Current Version: 0.22.0
Example
This framework provide easy position processor for Proximi.io SDK, actually only beta SDK support processors.
Actually are supported:
- PDR (Pedestrian Dead Reck) -
ProximiioPDRProcessor
- Position Snap -
ProximiioSnapProcessor
Each processor is complain to SDK protocol of type ProximiioLocationProcessor
.
In order to use you can for example:
/// add snap pre-processor
let snap = ProximiioSnapProcessor()
snap.threshold = 5.0
Proximiio.sharedInstance()?.locationManager.addProcessor(snap, avoidDuplicates: true)
/// add pdr processor
let prd = ProximiioSnapProcessor()
pdr.threshold = 15.0
pdr.avgStepLength = 0.65
pdr.useDeviceHeading = false
Proximiio.sharedInstance()?.locationManager.addProcessor(pdrProcessor, avoidDuplicates: true)
Parameters
Each processor has specific parameters to manage them.
ProximiioPDRProcessor
threshold
, set distance till user can get far from first position fix (aka position from an hardware source) till this can be fixed againavgStepLenght
, in meters define the average step lengthuseDeviceHeading
, define if the heading for the step is calculate by the sensors automatically or feeded manually bycustomHeading
customHeading
, need to have the actual heading position to calculate the step
ProximiioSnapProcessor
threshold
, set distance till the user is attracted to a path defined in the backend
Requirements
Installation
ProximiioProcessor is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ProximiioProcessor'
Author
Proximi.io, [email protected]
License
ProximiioProcessor is available under the commercial license. See the LICENSE file for more info.