get departures

This block is part of the NS group and was last modified in core v15.0.0.

get departures v15.0.0

Get the live departure board for a station. Provide the station code or the UIC code.

In pins 6 + flow
  • flow
    flow
  • Connection required
    nsconnection

    The NS connection.

  • Station code required
    value

    NS station code (e.g. ut for Utrecht Centraal). Either this or the UIC code is required. • Hidden when other fields are filled

  • UIC code required
    value

    UIC code of the station. Either this or the station code is required. • Hidden when other fields are filled

  • Date / time
    date

    Show departures from this moment onward. Defaults to now.

  • Max journeys
    number

    Number of departures to return. Defaults to 40.

    Default 40

  • Language
    value

    Language for localized text (e.g. nl or en). Defaults to Dutch.

Out pins 6 + flow
  • flow
    flow
  • Connection
    nsconnection

    The NS connection.

  • Success
    condition

    True if the request succeeded.

  • Departures
    array

    The departures, each with direction, planned/actual track, planned_date_time and actual_date_time as unix timestamps, and delay_minutes.

  • Count
    number

    Number of departures returned.

  • Source
    value

    The data source reported by NS.

  • Error
    value

    Error message if the request failed.

vertrektijden
departures
vertrek

A typical wiring for get departures: a function trigger starts the flow; open connection feeds the connection pin; value feeds the station pin; value feeds the uic_code pin; the flow out pin feeds debug.

Studio canvas example for the get departures block: typical wiring for get departures.

Version history

Introduced in v15.0.0.


Back to NS Return to the main group to view all sub-groups Back to NS Return to the group to view all blocks within this group