plan trip
This block is part of the NS group and was last modified in core v15.0.0.
plan trip v15.0.0 Plan a journey between an origin and a destination. Each endpoint accepts a station code, a UIC code, or a geo point.
- flow
flow - Connection required
nsconnectionThe NS connection.
- From station code required
valueOrigin NS station code (e.g. asd for Amsterdam Centraal). • Hidden when other fields are filled
- From UIC code
valueOrigin UIC code. • Hidden when other fields are filled
- From geo point
geo_pointOrigin coordinate (for door-to-door planning). • Hidden when other fields are filled
- From name
valueOptional label for the origin coordinate.
- To station code required
valueDestination NS station code. • Hidden when other fields are filled
- To UIC code
valueDestination UIC code. • Hidden when other fields are filled
- To geo point
geo_pointDestination coordinate (for door-to-door planning). • Hidden when other fields are filled
- To name
valueOptional label for the destination coordinate.
- Via station code
valueOptional station code to route via.
- Via UIC code
valueOptional UIC code to route via.
- Via geo point
geo_pointOptional coordinate to route via.
- Date / time
dateDeparture (or arrival) moment for the trip. Defaults to now.
- Search for arrival
conditionWhen true, the date/time is treated as the desired arrival time instead of departure.
- Language
valueLanguage for localized text (e.g. nl or en). Defaults to Dutch.
- flow
flow - Connection
nsconnectionThe NS connection.
- Success
conditionTrue if the request succeeded.
- Trips
arrayThe trip options, each with planned/actual departure and arrival as unix timestamps, transfers, delays and per-leg details.
- Count
numberNumber of trips returned.
- Error
valueError message if the request failed.
reisadvies |
trips |
journey |
reisplanner |
A typical wiring for plan trip: a function trigger starts the flow; open connection feeds the connection pin; value feeds the from_station pin; value feeds the to_station pin; the flow out pin feeds debug.

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
