ns_stations: Returns a list of stations.

Description Usage Value See Also Examples

View source: R/ns_stations.R

Description

Returns a list of stations.

Usage

1

Value

A dataframe containing the stations.

This function implements version 2 of the Station list service of the NS API. It allows the user to request the details of all stations. The following details are returned:

code

Station identification abbreviation.

type

Station type.

land

Station country code:

uiccode

Station UIC code, identification code of the international railway union, Union Internationale des Chemins de fer.

lat

Station latitude coordinate.

lon

Station longitude coordinate.

kort

Brief name of the station, consisting of max.10 characters.

middel

Medium-length name of the station, consisting of max. 16 characters.

land

Full name of the station, consisting of max. 25 characters.

Please note that this implementation returns the 'namen' element as flattened columns and that the element 'synoniemen' is not returned in the dataframe. It can be obtained from the XML however.

See Also

http://www.ns.nl/en/travel-information/ns-api/documentation-station-list.html

Examples

1

nl-hugo/ns documentation built on May 23, 2019, 9:06 p.m.