process_gtfs_local: process_gtfs_local

process_gtfs_localR Documentation

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)

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.

Value

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

See Also

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

Examples

## 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)

gtfsrouter documentation built on Oct. 29, 2024, 9:06 a.m.