Closed afischerdev closed 1 year ago
waypointCatchingRange wasn't enough
However, using the waypointCatchingRange allows better flexibility as this variable can be changed by apps?
Also its default value could be larger?
The problem was on the other side of route generation. The error message was in both cases 'from position not found'. In first case this was true and it's useful to start a second round. In second case the engine doesn't find the end of the route and starts a new round of route searching, where the from point is not found. The value is not only checked for distance, cost and distance is used. So it may be better to add a new finishing tolerance value than using waypointCatchingRange.
BRouter runs several rounds of routing before finish. The previous run has an 'airDistanceCostFactor' and we compare the last result with the new costs. so I used the old factor again for compare. Now we can stay with the old tolerance of 100.
According to issue #568 two changes for get better results on long distances around searching points.
A 3rd idea is drop for now - tile generation: add pseudo points when no points in an areas.