Today, we took a field trip! We took the 22 Illini from the Ceramics Building to the Transit Plaza and took a detailed look at the information signs that display bus route data.
In this activity, you will recreate a simple version of this sign.
For this activity, you will be working in the exp_cumtd
directory. You can merge it using the following:
Additionally, you will need your own CUMTD API key. You must add your CUMTD API key to your workbook, which you can do by following these steps:
Using the Lecture Handout for Nov. 1, make a CUMTD API request using your web browser. The base URL for this request is https://developer.cumtd.com/api/v2.2/json/GetDeparturesByStop and two query-string parameters are required (outlined just above "Puzzle #1").
A successful request for a popular stop (ex: IU
) will respond
with a large amount of JSON. This part does not require any Python.
Continue onto the backside of the lecture handout. The code is provided for you to complete this part as part of the handout.
You should print(data)
in Python
to ensure that you're recieving JSON back from CUMTD.
Finally, complete the last half-page of the lecture handout. You must
create the code to output an array of dictionaries, where each dictionary
contains the route
and expected
for every bus.
When this is complete, you will see a simple visualization in your workbook!
This activity is submitted digitally via git. View detailed submission instructions here.