get_bus_system_time: get_bus_system_time

Description Usage Arguments Details Value Examples

View source: R/get_bus_tracker_system_time.R

Description

get_bus_system_time() simply fetches the time on the Bus Tracker API server.

Usage

1
get_bus_system_time(key = Sys.getenv("ctar_api_key"))

Arguments

key

The Chicago Transit Authority developer API key either entered as a string or saved to the environment object 'ctar_api_key'

Details

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.

Value

Returns a POSIXct datetime of the API server time in CDT TZ.

Examples

1
2
3
4
## Not run: 
get_bus_system_time(key = Sys.getenv("ctar_api_key"))

## End(Not run)

willdebras/ctar documentation built on Nov. 5, 2019, 12:20 p.m.