Top  Previous  Next

Same method as NearestNDyn, just with positions instead of locations.

This means you should use the coordinate of TLocationList items, rather than the locations.


It also adds an additional parameter offroadspeed (km/h), which allow you to include the offroad part in the output. If speed=0, then it is skipped.


If nearestopen is "active" for a specific element (i.e. another element is used as the starting point, rather than the nearest), then the offroad part is skipped.


Syntax: NearestNP(filename: string; GF: TGISformat; LL1, LL2: TLocationList; N: integer; SL1, SL2: TStringList; dist, time, cost, directdist, routeobject, nearestopen: boolean; offroadspeed: double)