User's Point of Interest (POI)

This section describes how to get the POI of the user as estimated by the Veery geoprofiling algorithms (IOS and Android native).

poi_rn

POIs are only computed if veery was activated using Veery.POINT_OF_INTEREST parameter.

The POIs are computed regularly and sent to the Veery Cache.

It is possible to simply request for the last known list of POIs using the getPois function but it is also possible to get warned when a new set of POIs have been recalculated using the function requestPoiUpdate.

POIs are delivered with the "Weight" which represent the percentage of time spent at each place.

Veery Functions

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.

Veery sub-classes

Veery.Pois

Subclass of Veery reprsenting a set of users POIs.

toArray

Return an array of CLLocationCoordinate2D object.

toGeoJSONArray

Return an array of GeoJSON.

Each GeoJson containing a circle around a user POIs.

count

Return the amount of POIs known.

getWeight

Return the percentage of time spent at the specified POI.

Pois Update

veeryPoiUpdate

Callback triggered every time a new set of POIs is computed by the Veery backend.