Planning shade routes
Pakillo opened this issue · 2 comments
We need to find the best route between two points (ideally, two addresses or geoplaces as in Google Maps or Openstreetmap) with the conditions that
-
route must follow streets (ideally from OSM), i.e. not being a direct line between the two points. Must be possible to make it walking
-
route must minimize cost, in terms of selecting the most shaded routes as coming from the shade raster for that date and time
So far I've seen a few potential packages, but need to investigate more:
https://docs.ropensci.org/stplanr/
https://atfutures.github.io/dodgr/
https://cran.r-project.org/web/packages/gdistance/index.html
https://www.sciencedirect.com/science/article/pii/S2352711019302341
It looks like dodgr is the closest package, see https://atfutures.github.io/dodgr/articles/times.html. It can take an elevation raster into account (i.e. to minimize going up and down along the route). We need to check if it can also take other user-provided rasters as cost surfaces