User Tools

Site Tools


api:dk11:delphi:gisshortestpath.tgis_shortestpath.costmodifiers

TGIS_ShortestPath.CostModifiers property

DK11 for Delphi | GisShortestPath.TGIS_ShortestPath.CostModifiers | Constructors | Methods | Properties | Events | Events

Cost modifier.

Available also on: .NET | Java | ActiveX.

Syntax

// Delphi
public
  property CostModifiers[ _idx : Integer ] : Double read write;
// C++ Builder
public:
  __property double CostModifiers = {read, write};

Parameters

Name Type Description
_idx Integer index of the modifier

Value

Type
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/07 01:10

Page Tools