setup_r5 | R Documentation |
setup_r5()
was renamed to build_network()
to create a more consistent
API. setup_r5()
is being deprecated after r5r v2.3.0 and will be
removed in a future release. Please switch to build_network()
.
setup_r5(
data_path,
verbose = FALSE,
temp_dir = FALSE,
elevation = "TOBLER",
overwrite = FALSE
)
data_path |
A string pointing to the directory where data inputs are
stored and where the built |
verbose |
A logical. Whether to show |
temp_dir |
A logical. Whether the |
elevation |
A string. The name of the impedance function to be used to
calculate impedance for walking and cycling based on street slopes.
Available options include |
overwrite |
A logical. Whether to overwrite an existing |
A r5r_network
object representing the built network to connect with
R5
routing engine.
More information about the TOBLER
and MINETTI
options to calculate the
effects of elevation on travel times can be found in the references below:
Campbell, M. J., et al (2019). Using crowdsourced fitness tracker data to model the relationship between slope and travel rates. Applied geography, 106, 93-107. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.apgeog.2019.03.008")}.
Minetti, A. E., et al (2002). Energy cost of walking and running at extreme uphill and downhill slopes. Journal of applied physiology. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1152/japplphysiol.01177.2001")}.
Tobler, W. (1993). Three presentations on geographical analysis and modeling: Non-isotropic geographic modeling speculations on the geometry of geography global spatial analysis. Technical Report. National center for geographic information and analysis. 93 (1). https://escholarship.org/uc/item/05r820mz.
Other Build network:
build_network()
,
download_r5()
library(r5r)
# directory with street network and gtfs files
data_path <- system.file("extdata/poa", package = "r5r")
# `setup_r5()` has been deprecated, please switch to `build_network()`
r5r_network <- build_network(data_path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.