Skip to content

comparison to other libraries

jarondl edited this page Jan 23, 2014 · 2 revisions

About this page

There are several gtfs libraries available for Python, but they are pretty hard to find. Let's try to collect them all here. pygtfs (this tool)

pros

  • Can handle multiple feeds in one database (using the additional feed table).
  • Supports python3 and python2 with the same codebase
  • Has at least some api documentation available.
  • Can handle large gtfs files.

cons

  • Young and perhaps untested
  • Very basic
  • The documentation is somewhat lacking

Google's Transitfeed

https://code.google.com/p/googletransitdatafeed/

pros

  • Sort of a reference implementation
  • Tested`
  • Has several additional tools (validator, schedule viewer)

cons

  • No Python3 support
  • Loads the feed into memory, which can take very long time (several hours) and large memory demands (~2G) for large datasets (120M zipped). Every time you use the feed.

gftsdb

http://gtfsdb.com

gtfs-sql