SetApproach

Top  Previous  Next

Procedure SetApproach(approach1, approach2: integer; viapoints: boolean);

 

This procedure works in connection with function RouteList and makes it possible to define how the generated route should start and end, if it uses dynamic segmentation. For node based routes, it has no influence.

 

If approach1 = 512 the route will start in the direction of digitization for the first link. If the value is 1024 it will be opposite. If the value is 0 (default) it will be whatever is the shortest / fastest.

 

In the same way approach2 manages how the route will end.

 

If parameter viapoints is true, all viapoints will be approached from one side and the route will then continue, so no U-turn is required.

 

Depending on oneway restrictions in the network, one or more of these rules may be broken in the output.

 

Versions: Pro

ActiveX / VCL / CLX component: RWcalc