com.amap.api.services.route

## 枚举 RouteSearchV2.DrivingStrategy

- java.lang.Object
- - java.lang.Enum<RouteSearchV2.DrivingStrategy>
  - - com.amap.api.services.route.RouteSearchV2.DrivingStrategy

- 所有已实现的接口:
    java.io.Serializable, java.lang.Comparable<RouteSearchV2.DrivingStrategy>
  封闭类:
    RouteSearchV2

      public static enum RouteSearchV2.DrivingStrategy
      extends java.lang.Enum<RouteSearchV2.DrivingStrategy>

  驾车策略

- - ### 枚举常量概要

    枚举常量
    枚举常量和说明
    `AVOID_CONGESTION` 躲避拥堵
    `AVOID_CONGESTION_AVOID_HIGHWAY` 躲避拥堵＋不走高速
    `AVOID_CONGESTION_HIGHWAY_PRIORITY` 躲避拥堵＋高速优先
    `AVOID_CONGESTION_LESS_CHARGE` 躲避拥堵＋少收费
    `AVOID_CONGESTION_LESS_CHARGE_AVOID_HIGHWAY` 躲避拥堵＋少收费＋不走高速
    `AVOID_CONGESTION_ROAD_PRIORITY` 躲避拥堵＋大路优先
    `AVOID_CONGESTION_SPEED_PRIORITY` 躲避拥堵＋速度最快
    `AVOID_HIGHWAY` 不走高速
    `DEFAULT` 默认，高德推荐，同高德地图APP默认
    `HIGHWAY_PRIORITY` 高速优先
    `LESS_CHARGE` 少收费
    `LESS_CHARGE_AVOID_HIGHWAY` 少收费＋不走高速
    `ROAD_PRIORITY` 大路优先
    `SPEED_PRIORITY` 速度最快

  - ### 方法概要

    所有方法 静态方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `static RouteSearchV2.DrivingStrategy` | `fromValue(int value)`
    `int` | `getValue()`
    `static RouteSearchV2.DrivingStrategy` | `valueOf(java.lang.String name)` 返回带有指定名称的该类型的枚举常量。
    `static RouteSearchV2.DrivingStrategy[]` | `values()` 按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。

    - ### 从类继承的方法 java.lang.Enum

      `clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

    - ### 从类继承的方法 java.lang.Object

      `getClass, notify, notifyAll, wait, wait, wait`

- - ### 枚举常量详细资料

    - #### DEFAULT

          public static final RouteSearchV2.DrivingStrategy DEFAULT

      默认，高德推荐，同高德地图APP默认

    - #### AVOID_CONGESTION

          public static final RouteSearchV2.DrivingStrategy AVOID_CONGESTION

      躲避拥堵

    - #### HIGHWAY_PRIORITY

          public static final RouteSearchV2.DrivingStrategy HIGHWAY_PRIORITY

      高速优先

    - #### AVOID_HIGHWAY

          public static final RouteSearchV2.DrivingStrategy AVOID_HIGHWAY

      不走高速

    - #### LESS_CHARGE

          public static final RouteSearchV2.DrivingStrategy LESS_CHARGE

      少收费

    - #### ROAD_PRIORITY

          public static final RouteSearchV2.DrivingStrategy ROAD_PRIORITY

      大路优先

    - #### SPEED_PRIORITY

          public static final RouteSearchV2.DrivingStrategy SPEED_PRIORITY

      速度最快

    - #### AVOID_CONGESTION_HIGHWAY_PRIORITY

          public static final RouteSearchV2.DrivingStrategy AVOID_CONGESTION_HIGHWAY_PRIORITY

      躲避拥堵＋高速优先

    - #### AVOID_CONGESTION_AVOID_HIGHWAY

          public static final RouteSearchV2.DrivingStrategy AVOID_CONGESTION_AVOID_HIGHWAY

      躲避拥堵＋不走高速

    - #### AVOID_CONGESTION_LESS_CHARGE

          public static final RouteSearchV2.DrivingStrategy AVOID_CONGESTION_LESS_CHARGE

      躲避拥堵＋少收费

    - #### LESS_CHARGE_AVOID_HIGHWAY

          public static final RouteSearchV2.DrivingStrategy LESS_CHARGE_AVOID_HIGHWAY

      少收费＋不走高速

    - #### AVOID_CONGESTION_LESS_CHARGE_AVOID_HIGHWAY

          public static final RouteSearchV2.DrivingStrategy AVOID_CONGESTION_LESS_CHARGE_AVOID_HIGHWAY

      躲避拥堵＋少收费＋不走高速

    - #### AVOID_CONGESTION_ROAD_PRIORITY

          public static final RouteSearchV2.DrivingStrategy AVOID_CONGESTION_ROAD_PRIORITY

      躲避拥堵＋大路优先

    - #### AVOID_CONGESTION_SPEED_PRIORITY

          public static final RouteSearchV2.DrivingStrategy AVOID_CONGESTION_SPEED_PRIORITY

      躲避拥堵＋速度最快

  - ### 方法详细资料

    - #### values

          public static RouteSearchV2.DrivingStrategy[] values()

      按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:

          for (RouteSearchV2.DrivingStrategy c : RouteSearchV2.DrivingStrategy.values())
              System.out.println(c);

      返回:
        按照声明该枚举类型的常量的顺序返回的包含这些常量的数组

    - #### valueOf

          public static RouteSearchV2.DrivingStrategy valueOf(java.lang.String name)

      返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
      参数:
        `name` - 要返回的枚举常量的名称。
      返回:
        返回带有指定名称的枚举常量
      抛出:
        `java.lang.IllegalArgumentException` - 如果该枚举类型没有带有指定名称的常量
        `java.lang.NullPointerException` - 如果参数为空值

    - #### getValue

          public int getValue()

    - #### fromValue

          public static RouteSearchV2.DrivingStrategy fromValue(int value)