GPS to GTFS matchup
A suite of Python and SQL tools for matching GPS bus data to GTFS data.
At the moment gps2gtfs is a more-or-less scattered collection of tools which you can use to match AVL (Automatic Vehicle Location, aka GPS tracking) data of public transportation vehicles with their GTFS schedule counterparts.
If you are here to work with San Francisco Muni data, then a set of tools for recording and working with that data is included in this package. Otherwise, you will have to do a little bit of work to get your data into the database in the correct way (there are instructions for what you want to do).
gps2gtfs is released under the MIT license.
Using gps2gtfs
The docs page will bring you to API docs for the nice python interfaces that have been built as tools on top of the database data. However they are not very self-explanatory when it comes to the question of, "How do I use this to analyze my data?"
Therefore the instructions here give you step-by-step instructions to get you to the point where you can actually use your data.
Links
GTFS to SQL importerPython DB Modules
PostgreSQL
psycopg
pyshapely
OSMViz