nmandery / rout3serv

H3-grid based Routing server with GRPC-API and dataframe integration
0 stars 0 forks source link

Make travel duration comparisson more fuzzy #19

Closed nmandery closed 2 years ago

nmandery commented 2 years ago

To give more importance to the road category when the durations are somewhat equal.

https://github.com/nmandery/route3/blob/362f574d56680e1dbdafc47abd069635270b98c1/crates/route3_road/src/weight.rs#L115

nmandery commented 2 years ago

This should also add some randomness when weights a compared in "fuzzy mode" to get consistent results in case two values are compared. In case of equalness the comparison of therandom value would decide

nmandery commented 2 years ago

fuzzy is the wrong term here, a factor to give importance to the edge_preference is more fitting.