openbahn_locations: Find a location

Description Usage Arguments Details Value Author(s) References Examples

Description

openbahn_locations() enables you to find locations and their respective IDs and coordinates known by the API.

Usage

1

Arguments

query

character, a city or train station to look for

Details

openbahn_locations() uses the API key stored by openbahn_auth.

Value

A list containing the path, response and content of the GET request.

Author(s)

Philipp Ottolinger

References

http://data.deutschebahn.com/dataset/api-fahrplan

Examples

1
2
3
4
5
6
7
## Not run: 
# Set your API key
openbahn_auth("YOUR_KEY_HERE")
# Look for a location or station name
openbahn_locations("Mainz Hbf")

## End(Not run)

ottlngr/openbahn documentation built on May 7, 2019, 9 p.m.