IsoCostDynLocationListN
Previous  Top  Next

Function IsoCostDynLocationListN(link: integer; percent: double; locationnum,nearest: integer; maxcost: single): integer;

Calculates an isochrone from a location until "Nearest" locations on the list has been reached. If maxcost<>0, the function will however stop as soon as maxcost has been reached.

Link is the starting link.
Percent is the position along the starting link.
Locationnum denotes the number of locations on the list. See function LocationListSet for more information.

The function returns the actual number of locations found on the list. After successful return the index's for the location list are updated to reflect the order of the nearest locations. This is done through LocationListGetNewPos and LocationListGetOldPos functions.

This function is good for locating the nearest N objects on the location list as fast as possible. See sample code.

You can improve performance of this function by not having any very long links in your network, such as a long ferry route.

Use OnIsoChroneProgress event for tracking progress.

Possible error codes: -10 -30 -40 -43
Versions: Standard Pro
ActiveX / VCL / CLX component: RWcalc