Description Usage Arguments Details Value Author(s) References Examples
openbahn_departures
returns a departure board for a specific station, date and time.
1 | openbahn_departures(id, date, time)
|
id |
character, the internal ID of the station, received from |
date |
character, the date of the departure board in format |
time |
character, the time of the departure board in format |
openbahn_departures()
uses the API key stored by openbahn_auth
.
A list
containing the path
, response
and content
of the GET
request.
Philipp Ottolinger
http://data.deutschebahn.com/dataset/api-fahrplan
1 2 3 4 5 6 7 | ## Not run:
# Set your API key
openbahn_auth("YOUR_KEY_HERE")
# Get a departure board for a specific station, date and time
openbahn_departures("008000240", date = Sys.Date() + 1, time = "12:00")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.