![]() Stop name: 76th Street & Ford City Movie TheatreĮstimated time of arrival: Sun Dec 19 19:32:00 2010 Prediction generated at: Sun Dec 19 19:25:00 2010 Then, just pass this stop_id into getpredictions_stop(): > predictions = c.getpredictions_stop(stop.stop_id) if (stop.stop_name = "76th Street & Ford City Movie Theatre"): Next, search through the list of stops to find the one you're looking for: > for stop in stops: Title case, and a space between the direction and "bound". Note that the case and whitespace in the second parameter must be exact. Use getroute_stops() to get a list of stops: > stops = c.getroute_stops("54B", "North Bound") Say you want to figure out when buses are scheduled to arrive at the stop atħ6th Street & Ford City Movie Theatre for the #54B South Cicero bus, goingįirst, you'll need to get a list of stops to figure out what stop number isĪt that location. c = ctabustracker.ctabustracker("i28bcs01q1YV1CfAd1GcVK1q4")Īfter instantiating the ctabustracker class, you can get some information out of it. This implements all of the methods available in the Chicago Transit Authorityīefore you can start with anything, you need to create a ctabustracker object,Īnd set it up with your API key. Ctabustracker.py A Python module for accessing CTA Bus Tracker information About ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |