route_types | R Documentation |
Route types (tram, train, etc.) are provided to the PTV API as an integer code. This function retrieves a named vector in which the values are the route type descriptions, and the names of the vector are the route type numbers. Note that "Night Bus" is a separate route type.
route_types(user_id = determine_user_id(), api_key = determine_api_key())
user_id |
Integer or character. A user ID or devid provided by Public
Transport Victoria. Refer to |
api_key |
Character. An API key, with dashes, provided by Public
Transport Victoria. Refer to |
A named integer vector in which the values are the route type descriptions, and the names of the vector are the route type numbers.
## Not run:
route_types()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.