locations: API "locations" endpoint

Description Usage Arguments Value Examples

Description

For detailed api ocumentation see https://transport.opendata.ch/docs.html#locations

Usage

1
locations(..., .protocol = "https")

Arguments

...

the locations endpoint requires the passing of either the query or the x and y parameters.

.protocol

the connection protocol; either http or https (default)

Value

the locations as a dataframe

Examples

1
2
3
# You need to specify either query or x and y
locations(query = "Bern")
locations(x = 46.94882, y = 7.439123)

retowyss/swiss-public-transport-r documentation built on May 8, 2019, 6:50 p.m.