afimb / gtfslib-python

An open source library in python for reading GTFS files and computing various stats and indicators about Public Transport networks
GNU General Public License v3.0
44 stars 6 forks source link

Proposal: partial reads by date #66

Closed invisiblefunnel closed 7 years ago

invisiblefunnel commented 7 years ago
from gtfslib.dao import Dao
from gtfslib.csvgtfs import read_dates

# or any particularly interesting date
earliest_date = min(read_dates("gtfs.zip"))

dao = Dao()
dao.load_gtfs("gtfs.zip", dates=[earliest_date])
invisiblefunnel commented 7 years ago

Sorry, I accidentally submitted before I finished. I will close this and reopen with the complete proposal.