CityShadeMapper icon indicating copy to clipboard operation
CityShadeMapper copied to clipboard

Planning shade routes

Open Pakillo opened this issue 3 years ago • 2 comments
trafficstars

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

Pakillo avatar Jun 15 '22 11:06 Pakillo

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

Pakillo avatar Jun 15 '22 11:06 Pakillo

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

Pakillo avatar Jul 04 '22 23:07 Pakillo