Trains
The Trains widget will display arrival, departure and disruptions data for all train stations in The Netherlands. For this widget a NS accountopen in new window is required.
Currently only working with public transport in The Netherlands. Do you know a datasource or open API for other countries? Let us know and we might add the functionality.
Screenshot


Functionality
The Trains widget has the following functionality:
- Choose Station from list of known NS Stations
- Display arrivals on a station
- Display departures from a station
- Display disruptions around a station
- Filter departure station to show commute
How to use
Create an account at NS API Portalopen in new window. Select the option "Externe Bezoeker".
Click "Sign Up Now" in order to start creating an account.
Provide the details and verify your email address.
Navigate to the Product Pageopen in new window.
Select the "NS-App" product and click "Abonneren" (subscribe). If you want you can specify a name, this is option and you can leave this as "NS-App"
Click on "Bevestigen". The page will now redirect to your profile where you can see your keys.
Click on "weergeven" under "Primaire Sleuten" and copy the API Key.
Provide (paste) the key in the Trains Widget.
Configuration
The following configuration options are available for this widget.
| Setting | Description |
|---|---|
| Widget Title | Widget header title |
| API Key | Specify the API Key from NS API Portaalopen in new window |
| Station Name | After provided a valid API Key this list will display all stations. Use the search to typeahead and select the station. Please note: first save the widget after providing the API Key. |
| Show Arrivals | Toggle on this option to show the arrivals |
| Show Departures | Toggle on this option to show the departures |
| Show Disruptions | Toggle on this option to show the disruptions |
| Arrivals Limit | Limit the amount of items to be displayed for arrivals |
| Departures Limit | Limit the amount of items to be displayed for departures |
| Stations Filter | Specify a station (name) to show this station in the departures list |
| Show Icons | Toggle on this option to show the icons in the lists |
| Interval | Specify the interval in between the widget will poll for new data. |
All other configuration settings are explained here.
