Open juliusfriedman opened 4 years ago
It is strange this fails, I'll try to have a look, still really busy though so not sure when I will get to it.
I can tell you, for sure that because there is only one constant speed set, shortest and fastest in this case should always give the same route.
What's also strange is that this lua profile on shortest can find a route... locomotive .lua.txt
Seems to be somewhat fixed via https://github.com/itinero/routing/pull/302
Not quite fixed by #302 as I am getting the same issue when using the SimpleTrain but in a different route, Shortest seems to fail but Fastest resolved.
As there is no difference in this case I am not sure where to look directly but I will try to take a look when I have time, the Locomotive profile doesn't seem to have this issue as it resolved points and calculates on all profiles (fastest, shortest and classifications) where as SimpleTrain will resolve points on Shortest but not Calculate a route for unknown reasons. (Although in difference cases that it did before)
The points which are failing to route under shortest this time is:
Latitude=30.4608906,Longitude=-91.1754958 Latitude=30.4219282,Longitude=-91.1505773 Latitude=30.4547893,Longitude=-91.1744733 Latitude=30.471294,Longitude=-91.1752051} Latitude=30.4657931,Longitude=-91.1752237 Latitude=30.4607259,Longitude=-91.1750374 Latitude=30.4609047,Longitude=-91.1754881 Latitude=30.1249238,Longitude=-90.7717801 Latitude=30.2347364,Longitude=-90.9131393 Latitude=30.3592879,Longitude=-91.0419534 Latitude=30.3895487,Longitude=-91.0944052 Latitude=30.3592879,Longitude=-91.0419534
Using profile from: https://github.com/itinero/GTFS/blob/features/shapes/src/GTFS.Shapes/Osm/profiles/train.lua
From 274417@92.3% [41.8105,-87.76265] To 273263@52.3% [41.616356,-87.3693]
Profile Shortest results in
RouteNotFound
exception while Profile Fastest has result with success: