Class Veery
getNextTrip()
Get the next estimated trip object for that user as predicted by the Roofstreet geo-profiling algorithms.
Parameters
none
Returns
Veery.Predictions Object
Usage / Example
let prediction = veery.getNextTrip() if (prediction?.isOk())! { if let geojs = prediction?.toGeoJson(){ //... //... var strNameStart = prediction?.getStartName() let start = veery.getNextTrip()?.getStartTrip() //......... } }
User interaction
none
See also
getNextTrip
Get the next estimated trip for that user.
requestPredictionUpdate
Request for a callback event when a new prediction is computed by the Veery Backend.
stopPredictionUpdate
Cancel the call to requestPredictionUpdate.
Predictions.isOK
Return true if a prediction is in the Cache.
Predictions.getProbability
Get the level of certainty of the predictive algorithm.
Predictions.getNextDestination
Get the coordinates of the next predicted destination
Predictions.toGeojson
Get the next predicted trip in GeoJSON format.
Predictions.toLocations
Get the next trip in the form of a Location array.
Predictions.toLocationCoordinate2D
Get the next trip in the form of a CLLocationCoordinate2D array.
Predictions.getStartTrip
Get the next start point of the prediction.
Predictions.getStartTime
Get the estimated start time predicted for the next trip.
Predictions.getStartName
Get the name (street name) of the predicted departure place.
Predictions.getArrivalTime
Get the estimated arrival time predicted for the next trip.
Predictions.getArrivalName
Get the name (street name) of the predicted arrival place.
veeryPredictionUpdate
Callback triggered every time a new prediction is computed by the Veery backend.