The new development version of r5r is available on the dev
branch, and can be installed with:
utils::remove.packages('r5r')
devtools::install_github("ipeaGIT/r5r", subdir = "r-package", ref = "dev")
A gist demonstrating the new features can be found here.
The new version has two main features:
IsochronesThe new isochrones()
function of r5r
uses the IsochroneFeature
and WebMercatorGridPointSet
classes from R5 to quickly build isochrones. The function returns the isochrones as spatial sf
objects.
Although R5 doesn't have native functionality to account for slope in walking/cycling, it can use custom generalised costs introduced in a pre-processing step, as described in R5 issue #47. I've introduced a similar pre-processing step in setup_r5 to weight street edges by their slope, if a DEM raster file is found in the data_path
. Weights are calculated similarly to OpenTripPlanner. for walking, I use Tobler's hiking function, following the discussion on OTP's issue #2579. For cycling, I use the slopeSpeedCoefficient
function from OTP's ElevationUtils.java.
Those are not intrusive changes to R5, as they just use the walk and bike time multipliers of the Edge class. Technically, we can even allow the user to provide custom weighting functions, to fit the package to different use cases.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4