get stations

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

get stations v15.0.0

List or search NS stations. Leave the search empty to retrieve all stations.

In pins 4 + flow
  • flow
  • Connection nsconnection required

    The NS connection.

  • Search value

    Optional search text to filter stations by name.

  • Country codes value

    Optional comma-separated country codes to filter on (e.g. nl,be,de).

  • Limit number

    Maximum number of stations to return (only applied together with a search).

Out pins 5 + flow
  • flow
  • Connection nsconnection

    The NS connection.

  • Success condition

    True if the request succeeded.

  • Stations array

    The matching stations, each with name, code, uic_code, country and a ready-to-use geo_point.

  • Count number

    Number of stations returned.

  • Error value

    Error message if the request failed.

stations
stationslijst

A typical wiring for get stations: branch feeds the flow pin; open connection feeds the connection pin; the flow out pin feeds foreach.

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

Commonly used with

In production blueprints, this block is most often wired together with:

  • foreach: this block feeds into it.
  • branch: feeds into this block.
  • open connection: feeds into this block. Open a connection with the NS (Nederlandse Spoorwegen) Reisinformatie API. Reuse the resulting connection in the other NS blocks.

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