Name: busminer
Owner: Laboratório Analytics
Description: R package to match trajectories created from bus GPS locations to bus stops locations found in GTFS.
Created: 2016-05-06 14:37:33.0
Updated: 2017-12-06 15:26:45.0
Pushed: 2016-12-20 15:18:48.0
Size: 55
Language: R
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
busminer
is an R package to support Public Transportation (bus) Data Analysis.
ary(devtools)
all_github("analytics-ufcg/gps.stops.matcher")
ary(gps.stops.matcher)
It is expected that the GPS data table will be formatted like the example below:
| bus.code| latitude | longitude | date | line.code | | ——–|———-:| ———:| :——————:| ——–: | | AA028 | -25.40741 | -49.25299 | 2015-10-19 07:36:28 | 211 | | AA028 | -25.40733 | -49.25303 | 2015-10-19 07:36:26 | 211 | | AA028 | -25.40704 | -49.25291 | 2015-10-19 07:36:20 | 211 |
It is expected that the GTFS folder contains the following files:
tion.data <- prepare.gps.data(bus.gps.csv.file.path = "<your-gps-data-file-path>")
s.data <- prepare.stops.data(gtfs.folder.path = "<gps-folder-path>")
hes <- match.locations.stops(location.data,stops.data,verbose=TRUE)