IsoCostNodeListN

Top  Previous  Next

Function IsoCostNodeListN(Node,nodenum,nearest: integer; maxcost: single): integer;

 

Calculates an isochrone from node until "Nearest" nodes on the list has been reached. If maxcost<>0, the function will however stop as soon as maxcost has been reached.

 

Nodenum denotes the number of nodes on the list. See function NodeListSet for more information.

 

The function returns the actual number of nodes found on the list. After successful return the index's for the node list are updated to reflect the order of the nearest nodes. This is done through NodeListGetNewPos and NodeListGetOldPos functions.

 

This function is good for locating the nearest N objects on the node list as fast as possible.

 

Possible error codes: -10 -30 -40 -43

Versions: Standard Pro

ActiveX / VCL / CLX component: RWcalc