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.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Bus.py
Direction.py
LICENSE
Line.py
NextBus.py
Prediction.py
README.md
Stop.py
TransitAgency.py
__init__.py
test.py

README.md

Introduction

This Python module polls NextBus (http://www.nextbus.com) for real-time bus arrival predictions. The NextBus XML manual is located at http://www.nextbus.com/xmlFeedDocs/NextBusXMLFeed.pdf.

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:

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

Testing/Usage

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