Class Veery.Pois

toGeoJSONArray()

Get an array of GeoJson representing circles arround the POIs.

Circles are 200 m in diameter

Parameters

none

Returns

GeoJSON object

    {   
        "type":"FeatureCollection",
        "features":
        [
            {
                "type":"Feature",
                "geometry":
                {
                    "type":"Polygon",
                    "coordinates":[
                        ...                 
                    ]
                }
            }
        ]
    }

Usage / Example

Veery.getPois(
        (pois) => {
            if (pois !== null) {
                let array = pois.toGeoJSONArray();
                    for(var i=0;i<array.length;i++){
                        let geojson = array[i];
                        console.log('Pois callback App.js==geojson===> end',geojson);
                    }
            }
        });

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.