Package: nsapi 0.1.0.9000
nsapi: Connect to the NS (Dutch Railways) API
Access the NS api and download current departure times, disruptions and engineering work, the station list, and travel recommendations from station to station. All results will be returned as a 'data.frame'. NS (Nederlandse Spoorwegen; Dutch Railways) is the largest train travel provider in the Netherlands. for more information about the API itself see <https://www.ns.nl/en/travel-information/ns-api>. To use the API, and this package, you will need to obtain a username and password. More information about authentication and the use of the functions are described in the vignette.
Authors:
nsapi_0.1.0.9000.tar.gz
nsapi_0.1.0.9000.zip(r-4.5)nsapi_0.1.0.9000.zip(r-4.4)nsapi_0.1.0.9000.zip(r-4.3)
nsapi_0.1.0.9000.tgz(r-4.4-any)nsapi_0.1.0.9000.tgz(r-4.3-any)
nsapi_0.1.0.9000.tar.gz(r-4.5-noble)nsapi_0.1.0.9000.tar.gz(r-4.4-noble)
nsapi_0.1.0.9000.tgz(r-4.4-emscripten)nsapi_0.1.0.9000.tgz(r-4.3-emscripten)
nsapi.pdf |nsapi.html✨
nsapi/json (API)
NEWS
# Install 'nsapi' in R: |
install.packages('nsapi', repos = c('https://rmhogervorst.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/rmhogervorst/nsapi/issues
api-clientnederlandse-spoorwegen-api
Last updated 2 years agofrom:9b97dc6c71. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Oct 26 2024 |
R-4.5-win | OK | Oct 26 2024 |
R-4.5-linux | OK | Oct 26 2024 |
R-4.4-win | OK | Oct 26 2024 |
R-4.4-mac | OK | Oct 26 2024 |
R-4.3-win | OK | Oct 26 2024 |
R-4.3-mac | OK | Oct 26 2024 |
Exports:check_ns_api_keysdatetimeget_current_disruptionsget_departuresget_disruptions_stationget_scheduled_engineering_workget_stationlistget_travel_advise
Dependencies:clicrulcurlhttpcodejsonlitemimeR6Rcpprlangtriebeardurltoolsxml2
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Are the username and password set? | check_ns_api_keys |
Translate date and time into datetime stamp to use in api call | datetime |
Get up to date departures from a station | get_departures |
Get disruptions and engineering work | get_current_disruptions get_disruptions_station get_scheduled_engineering_work |
Get a complete list of all the stations | get_stationlist |
Get travel advise from one station to another station | get_travel_advise |
NSapi package | nsapi-package nsapi |