---
title: "get departures · RUAL Documentation"
description: "Get the live departure board for a station. Provide the station code or the UIC code."
canonical: https://docs.rual.nl/block-types/NS/nsconnection_departures
language: en
---

# get departures

This block is part of the [`NS`](https://docs.rual.nl/block-types/NS) group and was last modified in core [`v15.0.0`](https://docs.rual.nl/core-versions/150000).

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

- 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.

- 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](https://docs.rual.nl/block-types/NS/nsconnection_departures): a [function trigger](https://docs.rual.nl/block-types/globals/trigger_custom_function) starts the flow; [open connection](https://docs.rual.nl/block-types/NS/nsconnection_open) feeds the `connection` pin; [value](https://docs.rual.nl/block-types/value/value_default) feeds the `station` pin; [value](https://docs.rual.nl/block-types/value/value_default) feeds the `uic_code` pin; the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%20ui/state_debug).

![Studio canvas example for the get departures block: typical wiring for get departures.](https://docs.rual.nl/canvas-examples/nsconnection_departures.png)

### Version history

Introduced in [`v15.0.0`](https://docs.rual.nl/core-versions/150000).
