Description Usage Arguments Value Examples
Calculate distance offsets for a set of overlapping shapes
1 | alignShapes(gtfs, from_stop, to_stop, crs, shape_ids = NULL)
|
gtfs |
path to zipped GTFS feed |
from_stop |
GTFS stop_id of stop that defines start of route segment. |
to_stop |
GTFS stop_id of stop that defines end of route segment |
crs |
local projection, default to UTM. Use a projection in meters. |
shape_ids |
character vector of shape_ids,
one for each shape of interest in shapes.txt of GTFS. If NULL, will use all
shapes within 30 m of |
data.table of shape_id, from_dist, to_dist and stop_order To use, add from_dist to avl_dist_traveled for each shape_id in a matched AVL dataset.
1 2 | gtfs <- system.file('extdata', 'gtfs.zip', package = 'speedRT')
shape_offsets <- alignShapes(gtfs, from_stop = 13337, to_stop = 13320)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.