GetNodeCost

Top  Previous  Next

Function GetNodeCost(Node: integer): single;

 

After a call to IsoCost the cost to all nodes are calculated. With GetNodeCost, you can query the cost to individual nodes very fast (instantaneous). This can be used to create a complete distance table.

 

Please note, if you have called IsoCost with a limit on the distance, the result for some nodes may be unlimited.

 

This can also be used after a call to Route, but in this case even fewer links will have a defined result. However all nodes on the route are defined.

 

When used in combination with turn restrictions, remember that a certain node can be part of a route more than once. In this case use GetLinkCost function instead when querying cost along the route.

 

Possible error codes: -10 -30 -43

ActiveX / VCL / CLX component: RWcalc