Top  Previous  Next

This sets the calculation target to be cost. At the same time it can be specified if turn restrictions should be included.


If you have defined any negative costs (TNetwork.SetCost), it is important to set turnmode = true, when creating the object.

Even so, it is experimental, if you use negative costs in route calculations.


Syntax: SetCheapest(turncosts: boolean)