brunesto/khuebner-graphhopper — pull request #1 by brunesto (2014-04-04 13:48:26+00:00)
Title: Turnrestrictions test

Hi Karl,

I added one test (RoutingAlgorithmIT.testMoscowTurnRestrictions) for the turn restrictions together with fixes in AStar and Fast/ShortWeighting classes to make it work.
I also changed a little bit RoutingAlgorithmIT and RoutingAlgorithmSpecialAreaTests so that the test can run with turn restriction

All tests are running, but there are 2 'cheatings':
- 'dijkstraOneToMany' is still commented out of the algorithms to be tested in RoutingAlgorithmSpecialAreaTests
- For the turn restriction test, 3 algos are not tested: CH, astarbi and dijkstrabi.
astarbi and dijkstrabi can pass the test but only after adding code to prevent sharp U Turns (i.e. from X to X) in AbstractTurnWeighting.
I left it commented because uncommenting the code breaks the test DijkstraBidirectionRefTest.testCalcIfEmptyWay()

Regards
Bruno