HERE Android SDK Developer's Guide

ViolatedOption

The enumeration ViolatedOption is a member of com.here.android.mpa.routing.RouteResult.

Enumeration Summary

public static final enumeration RouteResult.ViolatedOption

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

These are options which may be ignored by the routing engine; in such cases a list of violated options is returned in the listener's on_end() method.

[For complete information, see the section Enumeration Details]

Enum Constant Summary

Table 1. Enum Constants in ViolatedOption
Fields

public static final ViolatedOption AVOID_HIGHWAYS

The route uses highways although ALLOW_HIGHWAYS was false.

public static final ViolatedOption AVOID_TOLL_ROADS

The route uses toll roads although ALLOW_TOLLROADS was false.

public static final ViolatedOption AVOID_FERRIES

The route uses ferries although ALLOW_FERRIES was false.

public static final ViolatedOption AVOID_TUNNELS

The route uses tunnels although ALLOW_TUNNELS was false.

public static final ViolatedOption AVOID_DIRT_ROADS

The route uses dirt roads although ALLOW_DIRTROADS was false.

public static final ViolatedOption AVOID_CAR_SHUTTLE_TRAINS

The route uses rail ferries although AVOID_CARSHUTTLETRAINS was false.

public static final ViolatedOption AVOID_PARKS

The route uses paths through parks although ALLOW_PARKS was false.

public static final ViolatedOption BLOCKED_ROADS

The route uses roads which were blocked by dynamic penalties.

public static final ViolatedOption START_DIRECTION

The route's start direction is not as requested.

public static final ViolatedOption CARPOOL

The route uses CARPOOL streets even though it is disabled in the options

public static final ViolatedOption TIME_RESTRICTED_TURN

The route uses a time-restricted turn

public static final ViolatedOption PERMANENT_TRUCK_RESTRICTION

The route uses roads or turns which are permanently forbidden for given truck

Method Summary

Table 2. Methods in ViolatedOption
Methods

public int value ()

public static ViolatedOption valueOf (String name)

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

public static RouteResult.ViolatedOption[] values ()

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

Enumeration Details

These are options which may be ignored by the routing engine; in such cases a list of violated options is returned in the listener's on_end() method.

Enum Constant Details

public static final ViolatedOption AVOID_HIGHWAYS

The route uses highways although ALLOW_HIGHWAYS was false.

public static final ViolatedOption AVOID_TOLL_ROADS

The route uses toll roads although ALLOW_TOLLROADS was false.

public static final ViolatedOption AVOID_FERRIES

The route uses ferries although ALLOW_FERRIES was false.

public static final ViolatedOption AVOID_TUNNELS

The route uses tunnels although ALLOW_TUNNELS was false.

public static final ViolatedOption AVOID_DIRT_ROADS

The route uses dirt roads although ALLOW_DIRTROADS was false.

public static final ViolatedOption AVOID_CAR_SHUTTLE_TRAINS

The route uses rail ferries although AVOID_CARSHUTTLETRAINS was false.

public static final ViolatedOption AVOID_PARKS

The route uses paths through parks although ALLOW_PARKS was false.

public static final ViolatedOption BLOCKED_ROADS

The route uses roads which were blocked by dynamic penalties.

public static final ViolatedOption START_DIRECTION

The route's start direction is not as requested.

public static final ViolatedOption CARPOOL

The route uses CARPOOL streets even though it is disabled in the options

public static final ViolatedOption TIME_RESTRICTED_TURN

The route uses a time-restricted turn

public static final ViolatedOption PERMANENT_TRUCK_RESTRICTION

The route uses roads or turns which are permanently forbidden for given truck

Method Details

public int value ()

public static ViolatedOption 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 RouteResult.ViolatedOption[] values ()

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