-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathprocess_gtfs_local.Rd
45 lines (44 loc) · 1.36 KB
/
process_gtfs_local.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/go_home_work.R
\name{process_gtfs_local}
\alias{process_gtfs_local}
\title{process_gtfs_local}
\usage{
process_gtfs_local(expand = 2)
}
\arguments{
\item{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.
}
\description{
Process a local GTFS data set with environmental variables described in
\link{go_home} into a condensed version for use in \link{go_home} and
\code{go_to_work} functions.
}
\examples{
\dontrun{
# 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 ()
}
}
\seealso{
Other additional:
\code{\link{go_home}()},
\code{\link{go_to_work}()},
\code{\link{summary.gtfs}()}
}
\concept{additional}