powered by
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.
get_departures(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.
# NOT RUN { get_departures("UT") # }
Run the code above in your browser using DataLab