HERE Android SDK Developer's Guide

TrafficPenaltyMode

The enumeration TrafficPenaltyMode is a member of com.here.android.mpa.routing.Route.

Enumeration Summary

public static final enumeration Route.TrafficPenaltyMode

extends java.lang.Enum, java.lang.Object

Enumeration for calculating route duration.

[For complete information, see the section Enumeration Details]

Enum Constant Summary

Table 1. Enum Constants in TrafficPenaltyMode
Fields

public static final TrafficPenaltyMode DISABLED

Default mode.

public static final TrafficPenaltyMode OPTIMAL

Use speed informations to compute a time optimized route.

public static final TrafficPenaltyMode AVOID_CONGESTION

Avoid road closed and severe congestion.

Method Summary

Table 2. Methods in TrafficPenaltyMode
Methods

public static TrafficPenaltyMode valueOf (String name)

This method retrieves the enumeration value that matches the name specified by the caller.

public static Route.TrafficPenaltyMode[] values ()

This method retrieves an array of constants of the given enum type in the order in which they are declared.

Enumeration Details

Enumeration for calculating route duration. This is the mode used for traffic events handling. See Route.getTta(TrafficPenaltyMode, int) .

Enum Constant Details

public static final TrafficPenaltyMode DISABLED

Default mode. Route duration calculation will not take any traffic penalty into consideration

public static final TrafficPenaltyMode OPTIMAL

Use speed informations to compute a time optimized route.

public static final TrafficPenaltyMode AVOID_CONGESTION

Avoid road closed and severe congestion.

Method Details

public static TrafficPenaltyMode valueOf (String name)

This method retrieves the enumeration value that matches the name specified by the caller.

Parameters:

  • name

    A string containing the name of the enumeration member whose value is to be retrieved.

public static Route.TrafficPenaltyMode[] values ()

This method retrieves an array of constants of the given enum type in the order in which they are declared.