itinero/routing

Possible bug in TryResolve function

Martinnqn opened this issue · 0 comments

Hi, I would like to ask about the behavior of tryResolve. I try to connect routes less than 50 meters of distance. Sometimes the router returns the correct routerPoint, but other times it returns the wrong routerPoint. Next I add the images of the routes that I want to connect:

imagen

After getting the routerPoints, I see that tryResolve returned a routerPoint with a distance of more than 50 meters. In the following image, you can see a correct routerPoint in green, and a bad routerPoint in blue. The white circle indicates where the blue routerPoint would expect to connect.

imagen

If I modify the original route a bit, the found routerPoint is the correct one.
Modified route:
imagen

Correct routerPoints:
imagen

Is there something I'm missing about routerPoints, or is it maybe a bug?

Thank you!