User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_shortestpath.costmodifiers

TGIS_ShortestPath.CostModifiers property

DK11 for .NET | TatukGIS.NDK.TGIS_ShortestPath.CostModifiers | Constructors | Fields | Methods | Properties | Events

Cost modifier.

Available also on: Delphi | Java | ActiveX | Python.

Syntax

// 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;

Parameters

Name Type Description
_idx int
Integer
index of the modifier

Value

Type
double
Double

Remarks

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.

References

2022/11/30 19:27

Page Tools