itinero / routing

The routing core of itinero.
Apache License 2.0
220 stars 70 forks source link

Possible bug in TryResolve function #353

Open Martinnqn opened 2 years ago

Martinnqn commented 2 years ago

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!