Latest 0.1.9
Homepage https://github.com/NUDelta/Pretracking
License MIT
Platforms ios 8.0, requires ARC
Authors

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.

CI Status
Version
License
Platform

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.

Latest podspec

{
    "name": "Pretracking",
    "version": "0.1.9",
    "summary": "This does Pretracking.",
    "description": "This is a Pretracking framework for tracking users location in a specified region with defined accuracy",
    "homepage": "https://github.com/NUDelta/Pretracking",
    "license": "MIT",
    "authors": {
        "YK": "[email protected]"
    },
    "source": {
        "git": "https://github.com/NUDelta/Pretracking.git",
        "tag": "0.1.9"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "Pretracking": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This