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
{{ message }}
Repository navigation
Use highway tag and actual edge speed for Instructions #990
The DataFlagEncoder stores the highway type. The highway type allows us to create fancy instructions like: "leave the highway" or "enter the highway". Since the DFE works a bit different considering storing the speed of edges, we should find a way to calculate the actual speed of the edges for the Instructions calculation.
The solution is to use the weighting and not the encoder for calculating the time for an edge IMO (?)
For the time, yes. The idea here was to check the speed of the edge. It might be that we don't need this check if we have highway tags.
Consider you are driving on primary and you are in a left curve. Now there is a small road leaving straight (this happens very frequent). The heuristic is, that if the leaving road is 2*slower, and if the left bending road has the same speed as the current edge, then we are probably following the street and are not leaving the road, therefore we don't need an instruction.
We might be able to do the same via highway tags, so maybe speed is not needed here.
changed the title [-]Use highway tag and actual edge speed for DataFlagEncoder and Instructions[/-][+]Use highway tag and actual edge speed for Instructions[/+]on Aug 24, 2019
Activity
karussell commentedon Mar 18, 2017
The solution is to use the weighting and not the encoder for calculating the time for an edge IMO (?)
boldtrn commentedon Mar 18, 2017
For the time, yes. The idea here was to check the speed of the edge. It might be that we don't need this check if we have highway tags.
Consider you are driving on primary and you are in a left curve. Now there is a small road leaving straight (this happens very frequent). The heuristic is, that if the leaving road is 2*slower, and if the left bending road has the same speed as the current edge, then we are probably following the street and are not leaving the road, therefore we don't need an instruction.
We might be able to do the same via highway tags, so maybe speed is not needed here.
devemux86 commentedon Mar 18, 2017
Optimal instructions calculation is usually performed via road types and names, so speed indeed seems superfluous here.
boldtrn commentedon Mar 18, 2017
Yes, you are right. For encoders other than the DataFlagEncoder we don't have the road type. That's why I came up with the speed heuristic.
[-]Use highway tag and actual edge speed for DataFlagEncoder and Instructions[/-][+]Use highway tag and actual edge speed for Instructions[/+]boldtrn commentedon Jan 20, 2020
Should be fixed with #1844 :).