Search
RoutingOptions.TurnCost Property
See Also
 



Gets or sets a value added to the total cost of a route if it makes a turn.

 Syntax

VB6  Copy Code

Public Property Get TurnCost() As Byte
Public Property Let TurnCost( _
    ByVal value As Byte _
)

C++  Copy Code

public:
unsigned char get_TurnCost ()
void put_TurnCost (
    unsigned char value
)

 Property Value

A byte value. The default is 4.

 Remarks

This is a penalty value added to the total cost of an evaluated arrow route for each turn it makes. The routing algorithm aims to find paths that have a minimal cost, so assigning a greater value to TurnCost leads paths that make less turns (hence they have less segments).

 See Also