cc-routing / routing

12 stars 1 forks source link

Fix routing for exceptional inputs #6

Closed blahami2 closed 8 years ago

blahami2 commented 8 years ago

In a case, where source and target are on the same edge (and target is properly places after the source in the allowed direction), the algorithms fails (it loads the target of source edge and source of target edge, therefore performing an unnecessary circle). The routing algorithm cannot detect that, is it an input manipulation issue.

blahami2 commented 8 years ago

Thrown exception for exceptional input. The application state is supposed to react by using a different approach - directly loading the path data using a given edge. Fixed.