< Back

Get-NSTrainStation

Sat Jan 18, 2020 5:19 pm

NAME Get-NSTrainStation



SYNOPSIS

Find a list of matching Dutch train stations.





SYNTAX

Get-NSTrainStation [-StationName] <String> [[-URI] <Uri>] [<CommonParameters>]





DESCRIPTION

Gets train station names from the Dutch NS API (https://www.ns.nl/en/travel-information/ns-api)

Needs connection to External API http://webservices.ns.nl/ns-api-treinplanner

Use an Internet connected machine



Requires NSTrainTime module





PARAMETERS

-StationName <String>

Station or part-station name



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-URI <Uri>

Optional NS Train stations API URI



Required? false

Position? 2

Default value http://webservices.ns.nl/ns-api-stations

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





Author: Kenny White 08/06/2019



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-NSTrainStation -StationName 'Amsterd'



Returns sorted results of a wildcard search



Amsterdam

Amsterdam Airport

Amsterdam Amstel

Amsterdam Bijlmer ArenA

Amsterdam Centraal

Amsterdam Holendrecht

Amsterdam Lelylaan

Amsterdam Muiderpoort

Amsterdam RAI

Amsterdam Science Park

Amsterdam Sloterdijk

Amsterdam Van der Madeweg

Amsterdam Zuid

Nieuw Amsterdam











RELATED LINKS