Skip to content

tommytommytommy/transit

Repository files navigation

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.

About

This Python module polls transit agencies for real-time bus arrival predictions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages