Veery Route Match
DeviceEventEmitter.addListener('veeryRouteMatch', function(e: Event) {})
the Listener veeryRouteMatch
triggered when the backend computed new trips.
Your are warned only if you are called the requestRouteMatch and the activate( Int) with a service that include Veery.ROUTE_MATCH.
Parameters
Param name | Type | Usage |
---|---|---|
veeryRouteMatch | String | RouteMatch event |
function(e: Event) | function | return Veery.Locations |
Returns
Void
Usage / Example
import React, { Component } from 'react'; import { DeviceEventEmitter} from 'react-native'; import Veery from 'react-native-veery'; DeviceEventEmitter.addListener('veeryRouteMatch', function(e: Event) { // handle event. let locations = e; console.log('DeviceEventEmitter ===> RouteMatch', locations.getBoundingBox()); });
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.