This is an R client for the Swiss public transport API.

devtools::install_github(retowyss/swiss-public-transport-r)

The packages makes three functions available. One for each of the API-enpoints.

locations(query = "Bern")
connections(from = "Bern", to = "Basel")
stationboard(station = "Bern")