get nearest stations
This block is part of the NS group and was last modified in core v15.0.0.
get nearest stations v15.0.0 Find the NS stations closest to a coordinate. Provide a geo point, or a separate latitude and longitude.
- flow
flow - Connection required
nsconnectionThe NS connection.
- Geo point required
geo_pointThe coordinate to search around. • Hidden when other fields are filled
- Latitude required
numberLatitude to search around (when not using a geo point). • Hidden when other fields are filled
- Longitude required
numberLongitude to search around (when not using a geo point). • Hidden when other fields are filled
- Limit
numberMaximum number of stations to return.
- flow
flow - Connection
nsconnectionThe NS connection.
- Success
conditionTrue if the request succeeded.
- Stations
arrayThe nearest stations, ordered by distance, each with a distance field and a geo_point.
- Nearest station
objectThe single closest station.
- Count
numberNumber of stations returned.
- Error
valueError message if the request failed.
dichtstbijzijnde station |
nearest station |
A typical wiring for get nearest stations: create feeds the geo_point pin; open connection feeds the flow pin; number feeds the latitude pin; open connection feeds the connection pin; number feeds the longitude pin; the flow out pin feeds debug.

Commonly used with
In production blueprints, this block is most often wired together with:
- create: feeds into this block. Generates a geo point based on the given latitude and longitude.
- 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.
- number: feeds into this block. Generates a valid number from the filled custom value in the blueprint.
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
