Class Veery
requestPoiUpdate()
Request Veery to be warned when a set of POIs was computed by the backend.
Parameters
none
Returns
Void
Usage / Example
import Foundation import UIKit import Veery class ViewController: UIViewController, VeeryDelegate {// Implement Veery Delegate // TODO : Inside the principal class (!!not inside a function) let veery = Veery() override func viewDidLoad() { super.viewDidLoad() // TODO : Init the delegate veery.delegate = self // TODO : declare your API Key Secret veery.setApiKeySecret("SuPeRScrET12345789GhJ") // TODO : Activate the required function levels (user will be requested to accept geolocation) // veery.activate(service: Veery.GEOPROFILE) // Requires ios Veery 1.3.3 //veery.activate(service:Veery.BACKGROUND_GEOLOC | Veery.POINT_OF_INTEREST ) veery.requestPoiUpdate() } @IBAction func stopPoi(_ sender: Any) { veery.stopPoiUpdate() } }
User interaction
none
See also
getPois
Get last known list of POIs for that user.
requestPoiUpdate
Request for a callback event when a new set of POIs is computed by the Veery Backend.
stopPoiUpdate
Cancel the call to requestPoiUpdate.
Pois.toArray
Return an array of CLLocationCoordinate2D object.
Pois.toGeoJSONArray
Return an array of GeoJSON (circles around the POIs).
Pois.count
Return the amount of POIs known.
Pois.getWeight
Return the percentage of time spent at the specified POI.
veeryPoiUpdate
Callback triggered every time a new set of POIs is computed by the Veery backend.