openbahn_departures: Get a departure board for a specific station

Description Usage Arguments Details Value Author(s) References Examples

Description

openbahn_departures returns a departure board for a specific station, date and time.

Usage

1

Arguments

id

character, the internal ID of the station, received from locationNameApi.

date

character, the date of the departure board in format YYYY-MM-DD. Must not be a past date.

time

character, the time of the departure board in format HH:MM:SS.

Details

openbahn_departures() uses the API key stored by openbahn_auth.

Value

A list containing the path, response and content of the GET request.

Author(s)

Philipp Ottolinger

References

http://data.deutschebahn.com/dataset/api-fahrplan

Examples

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)

ottlngr/openbahn documentation built on May 7, 2019, 9 p.m.