This Python module polls transit agencies for real-time bus arrival predictions.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


This Python module polls NextBus ( for real-time bus arrival predictions. The NextBus XML manual is located at

This Python module contains basic classes to house transit agency data such as Line, Direction, Bus, and Stop. Transit data is organized in the following general data structure:

        Direction A
        Direction B
            Stop 1
            Stop 2
            Stop 3
                Prediction 1
                Prediction 2

Testing/Usage contains a simple test file that shows how to instantiate the NextBus module and then poll for real time predictions.