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.
1 2 3 4 5
optional, station names need to be in Dutch and the NS webservice also accepts short versions:f.i. Groningen or GN
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.
scheduled engineering work(=scheduled engineering work)
Get all the scheduled engineering work for the next 2 weeks
get_scheduled_engineering_work(). This will exclude
work that was unplanned.
current disruptions for a specific station (=unscheduled disruptions + current engineering work)
get_disruptions_station() and give a station name as argument.
a dataframe with disruptions. Date time columns are formatted as time in "Europe/Amsterdam" timezone.
get_current_disruptions: current disruptions
get_scheduled_engineering_work: scheduled disruptions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.