Class Veery

requestRouteMatch()

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

This could be used to refresh a Maps.

Parameters

none

Retrns

Void

Usage / Example

import Foundation
import UIKit
import Veery

class ViewController: UIViewController, VeeryDelegate {// Implement Veery Delegate

    // TODO : Inside the principal class (!!not inside a function)
    let veery = Veery()

     override func viewDidLoad() {
        super.viewDidLoad()
        // TODO : Init the delegate
        veery.delegate = self
        // TODO : declare your API Key Secret
        veery.setApiKeySecret("SuPeRScrET12345789GhJ")

       // TODO : Activate the required function levels (user will be requested to accept geolocation)
                 veery.activate(service: Veery.GEOPROFILE)
                 // Requires ios Veery 1.3.3
                 //veery.activate(service:Veery.BACKGROUND_GEOLOC  | Veery.ROUTE_MATCH )

        veery.requestRouteMatch()

    }

    @IBAction func stopRouteMatchUpdate(_ sender: Any) {
         veery.stopRouteMatch()
    }

}

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.