UrbanAnalyst / dodgr

Distances on Directed Graphs in R
https://urbananalyst.github.io/dodgr/
127 stars 16 forks source link

Respect max speed values in weight streetnet #193

Closed mpadge closed 1 year ago

mpadge commented 1 year ago

Current "motorcar" weighting defaults to weighting profile, which defines maximum speed values for each way type. Routing times would be much more accurate if local max speed values were used instead. Context: https://github.com/ATFutures/m4ra/issues/3

mpadge commented 1 year ago

That actually already exists as part of the "weight-streetnet-times.R" code. The problem is that the current routine constructs a vector of potential values from (profile for way type, OSM maxspeed values, profile for surface type), and then selects the lowestof those. This routine then just needs to be modified to replace the lowest value for "motorcar" profiles with OSM values where those are given.