if (FALSE) { # interactive()
# \donttest{
# Set data dir for file downloads
spod_set_data_dir(tempdir())
# Download the number of trips on district level for the a date range in March 2020
spod_download(
type = "number_of_trips", zones = "districts",
dates = c(start = "2020-03-20", end = "2020-03-21")
)
# Download the number of trips on district level for select dates in 2020 and 2021
spod_download(
type = "number_of_trips", zones = "dist",
dates = c("2020-03-20", "2020-03-24", "2021-03-20", "2021-03-24")
)
# Download the number of trips on municipality level using regex for a date range in March 2020
# (the regex will capture the dates 2020-03-20 to 2020-03-24)
spod_download(
type = "number_of_trips", zones = "municip",
dates = "2020032[0-4]"
)
# }
}
Run the code above in your browser using DataLab