CSVisitsSensor Class Reference

Inherits from CSSensor : NSObject
Declared in CSVisitsSensor.h

Overview

  • Sensor for storing visits. Visits can be recorded automatically by iOS from iOS 8 and later. Each visit consits of a location and departure and arrival time. This sensor stores each arrival and departure event, which can than later be used to calculate time at a certain location, or time travelling.

JSON output value format

 {
     "longitude": FLOAT;
     "lattitude": FLOAT;
     "accuracy": FLOAT;
     "event": STRING; //"departure", "arrival"
 }

– storeVisit:

Processes a new visit object and stores it in the sensor. If the sensor is not enabled the point will not be stored.

- (void)storeVisit:(CLVisit *)visit

Parameters

visit

The visit object

Declared In

CSVisitsSensor.h