Port Authority True Time

Call of duty black ops 2 zone folder downloader. This time, it's official: an interface to Port Authority's official API.

Yes, you need an API key

Port Authority rolled out new tools Thursday that should alleviate at least the pain of not knowing, and provide riders with up-to-the-minute schedule information. Port Authority Size Chart is available for ladies, adult and youth. Free download of Port Authority Apparel Sizes Chart will get the right sizing fit the first time for women’s and men’s polo & work shirts, jackets, pants. True to Size Apparel.

Register for an account on the Port Authority site.

Examples

Setup

Using raw API output

If you want just your standard JSON output, just use the API (which is a wrapper around the requests module.)

Get info about busses:

All stops on the P1 route:

Next bus at stop 8165 ('East Liberty Station stop A')

A more object-oriented interface

True

Current location of all busses on route P1:

Info on a particular bus:

You can chain everything together, too. Find the next P3 bus at the outbound Negley stop:

A note on caching

Caching the results of your API queries in an expiring local store of some sort is highly recommended due to the API's somewhat restrictive initial limits. I highly recommend a Python LRU cache module or memcache.