analytics-ufcg/busminer

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

Homepage:

Size: 55

Language: R

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

busminer

busminer is an R package to support Public Transportation (bus) Data Analysis.

Installation
ary(devtools)
all_github("analytics-ufcg/gps.stops.matcher")
ary(gps.stops.matcher)
Input Data Requirements

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:

Usage
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)

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.