Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
mbta bus plotter using google app engine
Python C Other
Branch: master

DST

latest commit e6f34cbd8e
Jeff Kaufman authored

README

MBTA Bus Plotter
----------------

Plots bus routes and locations, runs on google app engine

Live at http://mbtaplot.appspot.com/

Uses:

  http://mbtaplot.appspot.com/
    - show a default set of routes

  http://mbtaplot.appspot.com/?routes=77,78,72
    - show specific routes

  http://mbtaplot.appspot.com/?routes=all
    - show all routes
     - very slow, may crash your browser

  http://mbtaplot.appspot.com/?routes=77,78,72&shading=true
    - shade and size routes by the number of buses currently on them
    - ideally we'd merge sections over the same area so we could size
      them properly, but we don't
      - the shared portions of routes will be underemphasized

  http://mbtaplot.appspot.com/?routes=77,78,72&buses=true
    - show buses   

  click on a route to show the buses on it

  click on it again (at least 45sec later) to update bus locations


Design:
  - mbtaplot.py makes xml requests to the nextbus web service and
    caches the results.  It serves index.html in response to most
    requests and json answers to requests for Paths or Buses.

  - index.html runs javascript with jquery to load the map, add the
    buses as markers, and add the paths as polylines.  It gets it's
    data by requesting json from Paths or Buses like this:

       http://mbtaplot.appspot.com/Paths?route=77
       http://mbtaplot.appspot.com/Buses?route=77
Something went wrong with that request. Please try again.