Description Usage Arguments Details Value Examples
View source: R/get_bus_tracker_system_time.R
get_bus_system_time() simply fetches the time on the Bus Tracker API server.
1 | get_bus_system_time(key = Sys.getenv("ctar_api_key"))
|
key |
The Chicago Transit Authority developer API key either entered as a string or saved to the environment object 'ctar_api_key' |
This function doesn't do much, but is critical for comparing arrival times. The Bus Tracker API runs on a server. To make sure bus tracking information matches your computer's time, you should run this function to synchronize.
Returns a POSIXct datetime of the API server time in CDT TZ.
1 2 3 4 | ## Not run:
get_bus_system_time(key = Sys.getenv("ctar_api_key"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.