R/api_calls_authentification.R
get_disruptions_station.Rd
These 3 functions call out to find out about disruptions and engineering on the tracks for the current time, for the next 2 weeks or a specific station.
get_disruptions_station(station) get_current_disruptions() get_scheduled_engineering_work()
station | optional, station names need to be in Dutch and the NS webservice also accepts short versions:f.i. Groningen or GN |
---|
a dataframe
current disruptions (=unscheduled disruptions + current engineering work)
These are all the disruptions of the railroad at this moment. So both
unscheduled work and work
and work that was scheduled and currently underway.
Use get_current_disruptions()
scheduled engineering work(=scheduled engineering work)
Get all the scheduled engineering work for the next 2 weeks
with get_scheduled_engineering_work()
. This will exclude
work that was unplanned.
current disruptions for a specific station (=unscheduled disruptions + current engineering work)
Use get_disruptions_station()
and give a station name as argument.
https://www.ns.nl/en/travel-information/ns-api/documentation-disruptions-and-maintenance-work.html
get_current_disruptions
: current disruptions
get_scheduled_engineering_work
: scheduled disruptions