RoutePairs

Top  Previous  Next

This method calculates the route between pairs of elements in LL1 and LL2, which must have the same amount of elements.

 

Input is the locations of the locationslists.

 

SL1 and SL2 can be nil or contain text identifiers for the output.

 

Dist, time and cost can be set to false/true to determine which fields should be included in the output.

Set routeobject = true, if you want the route to be part of the output (slows down calculations).

 

Output is a GIS file with one or more of these fields:

1.ID1
(2.ID2)
3.Distance
4.Time
5.Cost
6.DirectDist

 

See also RoutePairsGroupSize.

 

Syntax: RoutePairs(filename: string; GF: TGISformat; LL1,LL2: TLocationList; SL1,SL2: TStringList; dist, time, cost, directdist, routeobject, nearestopen: boolean);