RouteGetLink

Top  Previous  Next

Function RouteGetLink(index: integer): integer;

 

After a call to RouteFind, you can query the resulting route and get the ID of all links on the route. The ID's are returned in reverse order, so RouteGetLink(1) returns the link closest to the target (i.e. node2).

 

"ID" is returned if a link is travelled in the digitized direction. If the link is travelled in the opposite direction then "-ID" is returned.

 

Errors are always returned as "0" !

 

ActiveX / VCL / CLX component: RWcalc