Class Veery.LocationsHistory
toGeoJSON()
Get an array of GeoJson representing the history collected.
Only valid for Veery.HISTORY_ROUTEMATCH.
(for Veery.HISTORY_RAW, see toGeoJSON)
Parameters
none
Returns
[Data] JSONObject Array
Usage / Example
if let locationsHistory = veery.getLocationHistory(Veery.HISTORY_ROUTEMATCH, sinceDate, untilDate){ let geojsons = locationsHistory.toGeoJSON() if geojsons.count > 0 { for geojson in geojsons { // do whatever you need with the GeoJSON object } } }
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.