process_gtfs_local | R Documentation |
Process a local GTFS data set with environmental variables described in
go_home into a condensed version for use in go_home and
go_to_work
functions.
process_gtfs_local(expand = 2)
expand |
The data set is reduced to the bounding box defined by the home and work stations, expanded by this multiple. If the function appears to behave strangely, try re-running this function with a higher value of this parameter. |
No return value. The function saves processed data to a local cache.
Other additional:
go_home()
,
go_to_work()
,
summary.gtfs()
## Not run:
# For general use, please set these three variables:
Sys.setenv ("gtfs_home" = "<my home station>")
Sys.setenv ("gtfs_work" = "<my work station>")
Sys.setenv ("gtfs_data" = "/full/path/to/gtfs.zip")
# The following illustrate use with sample data bundled with package
Sys.setenv ("gtfs_home" = "Tempelhof")
Sys.setenv ("gtfs_work" = "Alexanderplatz")
Sys.setenv ("gtfs_data" = file.path (tempdir (), "vbb.zip"))
process_gtfs_local ()
# next available service from current system time:
go_home ()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.