get_departures: Get up to date departures from a station

View source: R/api_calls_authentification.R

get_departuresR Documentation

Get up to date departures from a station

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

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

## Not run: 
get_departures("UT")

## End(Not run)

RMHogervorst/nsapi documentation built on March 12, 2023, 10:41 a.m.