get arrivals

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

get arrivals v15.0.0

Get the live arrival 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 arrivals from this moment onward. Defaults to now.

  • Max journeys
    number

    Number of arrivals 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.

  • Arrivals
    array

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

  • Count
    number

    Number of arrivals returned.

  • Source
    value

    The data source reported by NS.

  • Error
    value

    Error message if the request failed.

aankomsttijden
arrivals
aankomst

A typical wiring for get arrivals: 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 arrivals block: typical wiring for get arrivals.

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