An unofficial MiWay (Mississauga Transit) API written in Python.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
PyWay.py
README.md
demo.py

README.md

PyWay

An unofficial MiWay (Mississauga Transit) API written in Python.

Usage:

import PyWay

p = PyWay.createInterface()

# Get full schedule for a route at a specific stop
print p.getFullSchedule(1306,26,"West")

# Get next three passing times for a route at a specific stop
print p.getNextPassingTime(1306,26,"West")

# Get all stop names and numbers for a route
print p.getRouteStops(26,"West")

# Access previously loaded schedules
print p.cachedSchedules[p.createID(1306,26,"West")]

# Access name and number of previously loaded stops
print p.cachedStops["1306"]

Note: This API is not endorsed by the City of Mississauga