Class Veery.LocationsHistory
getBoundingBox()
Get the bounding box of the set of historical data.
Parameters
none
Returns
Usage / Example
if let boundingbox = locationHistory.getBoundingBox(){ let northest : CLLocationCoordinate2D = boundingbox[1] let southwest : CLLocationCoordinate2D = boundingbox[0] let bounding : GMSCoordinateBounds = GMSCoordinateBounds.init(coordinate:northest, coordinate:southwest ) let camera = GMSCameraUpdate.fit(bounding, withPadding:10.0) self.mapView.animate(with: camera) }
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] (ios-history-locations-getboundingbox.md)
Get the bounding box of the set of historical data.
veeryRouteMatch
Delegate triggered when the backend computed new trips.