User's Point of Interest (POI)
This section describes how to get the POI of the user as estimated by the Veery geoprofiling algorithms (Android native).
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 Location 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.
Veery Interfaces
PoiUpdate
Interface could be passed as parameter to the requestPoiUpdate function
onPoiUpdate
Callback triggered every time a new set of POIs is computed by the Veery backend.