Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interesting Tasks on GTFS feeds data #67

Closed
Emaasit opened this issue Apr 1, 2016 · 2 comments
Closed

Interesting Tasks on GTFS feeds data #67

Emaasit opened this issue Apr 1, 2016 · 2 comments

Comments

@Emaasit
Copy link

Emaasit commented Apr 1, 2016

These are some of the questions I would like to ask of the GTFS data. I am preparing functions for these.

  1. Calculate a single trip fair: (to calculate the cost of a single trip, that is, boarding a vehicle, traveling for a number of stops, then disembarking)
  2. Calculate trips with transfers: To take into account multiple trip segments (that is,one or more transfers)
  3. Find trips departing a given stop
  4. Find trips arriving at a given stop
  5. Find trips between two stops
@Robinlovelace
Copy link
Member

Sounds good - will take some work. If you could provide some code or pseudocode building on the reproducible example below that would help:

download.file("http://transitfeeds.com/p/bart/58/latest/download", "bart.zip")
unzip("bart.zip")
bart = stplanr::gtfs2sldf("bart.zip")
plot(bart)
fares = read.csv("fare_attributes.txt")
fare_atts = read.csv("fare_rules.txt")
head(fares)
head(fare_atts)

@Robinlovelace
Copy link
Member

Closing for now as we're not working on it. Suggest doing this through an interface to OpenTripPlanner. This could either be within a package such as stplanr or gtfsr (as I suggested here) or, probably the best option, to create a new package, e.g. called rotp. Thoughts @richardellison?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants