Read GTFS-realtime alerts
read_gtfsrt_alerts.RdThis function reads GTFS realtime alerts. Alerts are hierarchical: a single alert can have multiple applicability periods, multiple affected entities, and translations to multiple languages. This function flattens all of that to a tabular format, with one row for every combination of applicability, entity, and language. All rows from a single alert can be identified through a common id.
Arguments
- filename
filename to read. Can be uncompressed or compressed with gzip or bzip2. Can also be an http:// or https:// URL.
- timezone
timezone of feed, in Olson format. Times in GTFS-realtime are stored as Unix time in UTC; this option will convert to local times. If you want to read times in UTC, specify "Etc/UTC"
- label_values
should enum types in GTFS-realtime (i.e. categorical variables) be converted to factors with their English labels. If false, they will be left as numeric codes. Default true.