DK11 for .NET | TatukGIS.NDK.TGIS_ShortestPath.CostModifiers | Constructors | Fields | Methods | Properties | Events
Cost modifier.
// C# public Double CostModifiers[_idx int] { get {} set {} }
' VisualBasic Public Property CostModifiers(ByVal _idx As Integer] As Double Get End Get Set(ByVal value As Double) End Set End Property
// Oxygene public property CostModifiers[ _idx : Integer ] : Double read read;
Name | Type | Description |
---|---|---|
_idx | int Integer | index of the modifier |
Type |
---|
double 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.