You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The distance of 0.1m seems to be a proper value already as the location snap distance is the same (DIST_PLANE.calcNormalizedDist(0.1)).
But we could make it smaller like 0.01 to reduce the chance and also return 1 instead of null? Not sure...
Activity
karussell commentedon Jul 7, 2022
For very short "starting" edges <10cm we return indeed
null: https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/util/details/AverageSpeedDetails.java#L46And this can happen everywhere when we start slightly before a new edge:
https://graphhopper.com/maps/?point=-34.650384%2C-58.465986&point=-34.648849%2C-58.464657&profile=car&details=average_speed
https://graphhopper.com/maps/?point=-34.650384%2C-58.465985&point=-34.648849%2C-58.464657&profile=car&details=average_speed
The distance of 0.1m seems to be a proper value already as the location snap distance is the same (
DIST_PLANE.calcNormalizedDist(0.1)).But we could make it smaller like 0.01 to reduce the chance and also return 1 instead of null? Not sure...
otbutz commentedon Jul 7, 2022
Is the average speed for such small distances even relevant?
Some kind of fallback value should suffice IMHO.
karussell commentedon Jul 7, 2022
Thinking forth and back:
nullis the correct response as we do not know the value (similar to missing values for e.g. max_speed).So will only make it less likely (<0.01).
RSPS_673_Matrix_SBI_Algo (#15)