Description Usage Arguments Value Examples
Use the trread import_gtfs function to import an MTC 511 GTFS zip file into a list of R dataframes
1 | get_511_url(privatecode)
|
privatecode |
this is the shortcode used by 511 to refer to operators. you can find these on the tibble returned from get_511_metadata |
a list of GTFS dataframes
1 2 3 4 5 6 7 8 9 10 | ## Not run:
#set your api key as an environmental variable
Sys.setenv(APIKEY511="yourkeyhere")
#if you don't have a key, you can get one here:
#https://511.org/developers/list/tokens/create
operator_df <- xml511_to_tibble()
bart_code <- df1[df1$name=='Bay Area Rapid Transit',]$privatecode
bart_gtfs_data <- get_mtc_511_gtfs(bart_code)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.