Skip to content

Instantly share code, notes, and snippets.

@elee
Created February 11, 2012 00:01
Show Gist options
  • Select an option

  • Save elee/1794249 to your computer and use it in GitHub Desktop.

Select an option

Save elee/1794249 to your computer and use it in GitHub Desktop.
MetroTransit API example
import urllib2
import json
from pprint import pprint
stop_id = 1200
pprint(json.load(urllib2.urlopen('http://svc.metrotransit.org/NexTrip/%s?format=json' % stop_id)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment