Description Usage Arguments Value Examples
View source: R/api_calls_authentification.R
Shows up to date departure times for a station. Displays all departing trains for the next hour. At least 10 departure times will be sent back and at least all the departure times for the next hour. https://www.ns.nl/en/travel-information/ns-api/documentation-up-to-date-departure-times.html.
1 | get_departures(station)
|
station |
station names need to be in Dutch and the NS webservice also accepts short versions:f.i. Groningen or GN |
a dataframe with date time formatted as time in "Europe/Amsterdam" timezone.
a dataframe with departure times at this moment on the station you chose. Date time columns are formatted as time in "Europe/Amsterdam" timezone.
1 2 3 4 | ## Not run:
get_departures("UT")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.