This is an R client for the Swiss public transport API.
devtools::install_github(retowyss/swiss-public-transport-r)
The package makes three functions available. One for each of the API-enpoints.
Functions return flat tables instead of json.
locations(query = "Bern")
connections(from = "Bern", to = "Basel")
stationboard(station = "Bern")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.