RouteFindDyn

Top  Previous  Next

Function RouteFindDyn(link: integer; percent: double; var fromto1,fromto2,routelength: integer; var extra: single): single;

 

This function is used for getting a route to location (link,percent) after a call to IsoCostDyn.

 

The following 2 examples perform the same calculation (that is calculating 2 routes), but the second method is much faster, when you want to calculate many routes starting at the same location. Depending on your actual data, you may need much more than 2 routes to see an improvement:

 

RouteDyn(link1,link2a,percent1,percent2a,fromto1a,fromto2a,routelengtha,extraa)

RouteDyn(link1,link2b,percent1,percent2b,fromto1b,fromto2b,routelengthb,extrab)

 

IsoCostDyn(link1,percent1,0)

RouteFindDyn(link2a,percent2a,fromto1a,fromto2a,routelengtha,extraa)

RouteFindDyn(link2b,percent2b,fromto1b,fromto2b,routelengthb,extrab)

 

Please see function RouteDyn for further details.

 

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

Versions: Standard Pro

ActiveX / VCL / CLX component: RWcalc