Description Usage Arguments Value Examples
Parses the raw response from a GTFS real-time feed
1 2 3 4 5 | gtfs_realtime(response, content = c("FeedMessage", "Alert", "EntitySelector",
"FeedEntity", "FeedHeader", "VehiclePosition", "TimeRange",
"TranslateedString", "TripDescriptor", "TripUpdate",
"TripUpdate.StopTimeEvent", "TripUpdate.StopTimeUpdate", "VehicleDescriptor",
"Vehicle"))
|
response |
binary response body |
content |
String specifying which section of the response to return |
FeedMessage RProtoBuf object containing the feed message
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
## South-East Queensland
url <- "https://gtfsrt.api.translink.com.au/Feed/SEQ"
response <- httr::GET(url,
httr::accept_json(),
httr::add_headers('Authorization' = ''))
feed <- gtfs_realtime(response, content = "FeedMessage")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.