get_departures: Get up to date departures from a station

Description Usage Arguments Value Examples

View source: R/api_calls_authentification.R

Description

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.

Usage

1
get_departures(station)

Arguments

station

station names need to be in Dutch and the NS webservice also accepts short versions:f.i. Groningen or GN

Value

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.

Examples

1
2
3
4
## Not run: 
get_departures("UT")

## End(Not run)

nsapi documentation built on May 1, 2019, 9:19 p.m.