User Tools

Site Tools


api:dk11:java:tatukgis.jdk.tgis_shortestpath.costmodifiers

TGIS_ShortestPath.CostModifiers property

DK11 for Java | tatukgis.jdk.TGIS_ShortestPath.CostModifiers | Constructors | Fields | Methods | Properties | Events

Cost modifier.

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

Syntax

// Java
public double getCostModifiers(
  int _idx
);
 
public void setCostModifiers(
  int _idx,
  double _value
);
// Oxygene
public
  property CostModifiers[ _idx : Integer ] : Double read write;

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:35

Page Tools