|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.