Class Veery

getPois()

Get the list of last known POIs of the user.

Parameters

none

Returns

Veery.Pois object

Usage / Example

The following example prints the POIs to a mapView Google Maps object

    var i = 0
    let poi = veery.getPois().toGeoJSONArray()

    // JSONObject contains circles arround the POI

    for p in poi {

        geoJsonParser = GMUGeoJSONParser(data: p)
        geoJsonParser.parse()
        renderer = GMUGeometryRenderer(map: mapView, geometries: geoJsonParser.features)
        renderer.render()


        let marker = GMSMarker(position: veery.getPois().toArray()[i])

        marker.icon = UIImage(named: "pinpoint_purple")

        marker.map = self.mapView

        i += 1

    }

Info

GMUGeoJSONParser, GMUGeometryRenderer classes are available on Google Maps API for IOS

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.