I am using osm2po's
TspDefaultMatrix to create a cost (time) matrix:
new TspDefaultMatrix(graph, vertexIds, maxCost, Log.stdout(Log.LEVEL_LOG), properties)
findShortestPath: false ignoreRestrictions: false ignoreOneWays: false heuristicFactor: 1.0
I tried many value for
Float.MAX_VALUE). Except for
maxCost = 0, I always get this in the log:
DEBUG Heuristic MaxCost set to 0.2134047
followed by some:
WARN Matrix  unreachable! WARN Matrix  unreachable!
because, indeed, some of the vertexId are more than
0.2134047 hours appart.
I want to know how this value (
0.2134047) is calculated and how I can effectively tell
TspDefaultMatrix to use my
By the ways, I did not found (was not searching a lot) the osm2po source code. Is it available ? I would have been able to answer my question myself.
By the way, I was using version
4.8.8 of osm2po to build the
.gph file and at runtime.