IsoCostMulti

Top  Previous  Next

This method calculates an isochrone from a list of facilities (NL, nodes), identifying which facility is nearest. No more than 65535 nodes are allowed in the list.

 

For each facility you can define if there is an offset, i.e. a cost>0 value that is added to the cost. This can for instance be used to create drivetime regions around a number of fire-stations, which has different start times. Set parameter to nil, if offset=0 for all facilities.

 

You can set MaxCost if you only want smaller isochrones in your calculations.

 

BestCost returns the cost to the nearest facility.

BestFacility returns an index into NL. If value is 65535, it means the node wasn't in reach of any facility.

 

Both have as many elements as there are nodes.

 

You can not combine this method with subsequent calls to RouteFind, LinkCostDyn, NodeCost or any other methods. You should only use the two output parameters as result.

 

Syntax: IsoCostMulti(NL: TIntegerList; Offset: TCostArray; var BestCost: TCostArray; var BestFacility: TWordArray)