Class Veery.Locations

getBoundingBox()

Get the bounding box of the set of historical data.

Parameters

none

Returns

{
    "southwest": {
         "longitude" : Double ,
         "latitude" : Double },
    "northeast" : {
         "longitude" : Double,
         "latitude" : Double }
}

Usage / Example

    Veery.getLocationHistory(Veery.HISTORY_RAW,1510876800000,new Date().getTime(),
    (locations) => {
        if (locations !== null) {
            let bounding = locations.getBoundingBox();
            let southwest = bounding.southwest;
            let northeast = bounding.northeast;
            console.log('locations App.js---southwest------',southwest);
            console.log('locations App.js---northeast------',northeast);
        }
    })

User interaction

none

See also

getLocationHistory

Get the historical geolocation data for the mentioned period.

requestRouteMatch

Request Veery to be warned when a new trip was computed by the backend.

stopRouteMatch

Cancel the call to requestRouteMatch.

Locations.toArray

Extract an array of Location objects from a history.

Locations.toGeoJSON

Get a GeoJson representing the history collected. Get a GeoJson representing the history collected.

Locations.toGeoJSONArray

Get an array of GeoJson representing the history collected. Only valid for Veery.HISTORY_ROUTEMATCH.

Locations.getBoundingBox

Get the bounding box of the set of historical data.

veeryRouteMatch

Callback triggered when the backend computed new trips.