Pretracking 0.1.15

Pretracking 0.1.15

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release May 2016
SPMSupports SPM

Maintained by Yongsung Kim, Kapil Garg.



  • By
  • YK

Pretracking

Pretracking, a location manager that starts fine-grained monitoring when a user is within a region of interest, and make decision based on current context. For the moment, only distance feature is implemented by default.

How To

  • set latitude, longitude, radius of monitoring region
  • set distance to the region
  • set accuracy of location tracking when the user is outside of the region.

Example:

setupParameters(distance: Double, latitude: Double, longitude: Double, radius: Double, accuracy: CLLocationAccuracy)
  • add locations to monitor
addLocation(distance: Double, latitude: Double, longitude: Double, radius: Double, name: String)
  • remove location with location name
removeLocation(name: String)
  • modify notifyPeople() in MyPretracker.swift

Requirements

CocoaPods

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

Pretracking is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "Pretracking"

Future Improvements

  • enable background tracking
  • add local notification to the notifyPeople()

License

Pretracking is available under the MIT license. See the LICENSE file for more info.