DK11 for Delphi | GisShortestPath.TGIS_ShortestPath.CostModifiers | Constructors | Methods | Properties | Events | Events
Cost modifier.
// Delphi public property CostModifiers[ _idx : Integer ] : Double read write;
// C++ Builder public: __property double CostModifiers = {read, write};
Name | Type | Description |
---|---|---|
_idx | Integer | index of the modifier |
Type |
---|
Double |
An array 1..255. Each value describes how much the cost of a link of the selected type must be multiplied.
The CostModifier allows a dynamic modifying cost base on a link type. For example, main roads can be set to be more attractive by reducing a “virtual” traversing cost to avoid traveling on regular roads.