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

Refactor DAO by merging all filter parameters #30

Closed laurentg closed 8 years ago

laurentg commented 8 years ago

Currently various getter on the DAO layer accept different parameters to filter on different objects, for example:

trips = dao.trips(fltr=..., stop_fltr=...)

Merge the various filter into one, such as this:

trips = dao.trips(fltr=...)

That would need to be able to automatically join the appropriate table when needed (for example on table trip, joint stop_times then stops if we filter on stops).

laurentg commented 8 years ago

Fixed in 02cccde00bf79472447435e5aae654e184655b4a and 32ff3e4c262dc4a5429f0aa43eee90f30576aa77.