get_gtfs: Get gtfs

Description Usage Arguments Value Examples

Description

Downloads and extracts GTFS static data

Usage

1
get_gtfs(url, extract = TRUE)

Arguments

url

link to GTFS .zip file

extract

logical indicating if the files should be extracted as data.frame objects into the global environment. If FALSE a list of data.frames is returned. If TRUE data.frames for each file are extracted into the Global Environment.

Value

list of dataframes, one for each .txt file

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

# download the GTFS feed for Melbourne, Australia
# using the link at transitfeeds.com

url <- "https://transitfeeds.com/p/ptv/497/latest/download"
get_gtfs(url = url, extract = TRUE)


## End(Not run)

SymbolixAU/gtfsway documentation built on May 9, 2019, 3:29 p.m.