Description Usage Arguments Value Examples
Removes vehicle positions that result in negative distance traveled between observations. When "odometer" values are available, also excludes positions with odometer values that decrease for increasing timestamp values.
1 | filterMatches(avl_matches, max_speed = Inf)
|
avl_matches |
vehicle positions matched to route shapes.
See |
max_speed |
maximum expected speed (in units of projection per second, typically m/s). Observations over max_speed will be dropped and speeds recalculated. |
data.table of filtered values in avl_matches, with dist_to_next and mps (meters per second) columns.
1 2 3 4 5 6 | ## Not run:
avl <- readVehiclePosition(system.file('extdata', 'vehiclePositions', package = 'speedRT'))
matched <- matchAVL(avl, gtfs = system.file('extdata', 'gtfs.zip', package = 'speedRT'))
filtered <- filterMatches(matched)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.