Class Veery.Pois

toArray()

Extract an array of CLLocationCoordinate2D objects from a list of POIs.

Parameters

none

Returns

[CLLocationCoordinate2D] array

Usage / Example

    let poi = veery.getPois().toArray() // [CLLocationCoordinate2D] array
    if poi.count > 0 {
        for p in poi {


            let marker = GMSMarker(position: p )

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

            marker.map = self.mapView

        }
    }

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.