-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
r5r v0.5.0 - Isochrones and Topography #164
Comments
Hi @ansoncfit, @abyrd and @mattwigway. @mvpsaraiva has implemented this temporary solution to consider elevation within |
For the record, this paper by Flüge et al (2019) used GPS data with aprox. 50,000 single cycling trips to estimate the effects of elevation on cycling speed. "In the models, speed on a network link is described as a function of several characteristics of the infrastructure and topology, and differs by user segments such as gender, trip purpose and type of bicycle". Here is how Pajares et al (2021) incorporated this info in GOAT, their new tool for accessibility analysis:
|
We'll continue the discussion of a temporary solution to elevation on issue #171 . |
We'll continue the discussion of an isochrone function in issue #123. Close this issue for now |
The new development version of r5r is available on the
dev
branch, and can be installed with:A gist demonstrating the new features can be found here.
The new version has two main features:
Isochrones
The new
isochrones()
function ofr5r
uses theIsochroneFeature
andWebMercatorGridPointSet
classes from R5 to quickly build isochrones. The function returns the isochrones as spatialsf
objects.Topography
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 theslopeSpeedCoefficient
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.
The text was updated successfully, but these errors were encountered: