Nothing
test_that("filter_valid_stop_times", {
poa <- read_gtfs(system.file("extdata/poa.zip", package="gtfs2gps"))
expect_equal(dim(poa$stop_times)[1], 23040)
expect_equal(dim(poa$stops)[1], 212)
expect_equal(dim(poa$routes)[1], 4)
subset <- filter_valid_stop_times(poa)
expect_equal(dim(subset$stop_times)[1], 774)
expect_equal(dim(subset$stops)[1], 8)
expect_equal(dim(subset$routes)[1], 4)
})
test_that("remove_invalid", {
sp <- read_gtfs(system.file("extdata/saopaulo.zip", package="gtfs2gps"))
sp$shapes <- sp$shapes[-(1:30000),]
sp$agency$agency_id <- 'test'
sp2 <- remove_invalid(sp, prompt_invalid = TRUE)
expect_equal(length(sp$stops$stop_id), 3039)
expect_equal(length(sp2$stops$stop_id), 602)
sp3 <- remove_invalid(sp, only_essential = FALSE)
expect_equal(length(sp3$stops$stop_id), 0)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.