routing
routing copied to clipboard
Bug in MaxDistanceSplitter
Hi, I just wanted to report a small issue that happens only in the rarest of cases. In my case, I ran across a road that was exactly 5 km (the max edge length), and the splitter created 3 segments, with 1 segment of length zero .
In line 67: if (data.Distance < _maxDistance)
should, I believe, be:
if (data.Distance <= _maxDistance)
Just noting that I was unable to make a contracted db after making this change (on a planet sized pbf filtered for rail data), the exception I received was
Edge detected that's too long in ...