This function allows users to obtain an overview of current alerts of all CTA buses through a summary table that provide the count of each type of alerts.

alertstat(key = Sys.getenv("BUS_CLIENT_KEY"))

Arguments

key

Key for accessing the API

Value

Table with the counts of each type of alerts.

Examples

alertstat()
#> #> Bus Stop Note Bus Stop Relocation Planned Reroute Service Change #> 2 8 15 13 #> Special Note #> 136