Learn R Programming

gtfsrouter (version 0.1.4)

process_gtfs_local: process_gtfs_local

Description

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.

Usage

process_gtfs_local(expand = 2)

Value

No return value. The function saves processed data to a local cache.

Arguments

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.

See Also

Other additional: go_home(), go_to_work(), summary.gtfs()

Examples

Run this code
if (FALSE) {
# For general use, please set these three variables:
Sys.setenv ("gtfs_home" = "")
Sys.setenv ("gtfs_work" = "")
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 ()
}

Run the code above in your browser using DataLab