User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shortestpath.costmodifiers

ITGIS_ShortestPath.CostModifiers property

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_ShortestPath.CostModifiers | Methods | Properties

Cost modifier.

Available also on: Delphi | .NET | Java.

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

2020/05/28 09:04

Page Tools