com.amap.api.navi.enums

## 类 PathPlanningStrategy

- java.lang.Object
- - com.amap.api.navi.enums.PathPlanningStrategy

-     public class PathPlanningStrategy
      extends java.lang.Object

  算路策略类型
  Route planning strategy type

  开发者可以使用此类策略进行算路，如果你想实现跟高德地图一样的checkbox选项，那么建议您直接使用我们封装的AmapNavi.strategyConvert()方法进行获取策略值
  Developers can use these strategies for route calculation, If you want to implement checkbox options like AutoNavi Map, it is recommended to directly use our encapsulated AmapNavi.strategyConvert() method to obtain the strategy value

  用法如下:
  Usage as follows:
  int strategy=mAMapNavi.strategyConvert(congestion, avoidhightspeed, cost, hightspeed, multipleroute);
  mAMapNavi.calculateDriveRoute(mStartPointList, mEndPointList, mWayPointList, strategy);

  参数:
  Parameters:
  congestion 躲避拥堵
  congestion Avoid congestion
  avoidhightspeed 不走高速
  avoidhightspeed Avoid highway
  cost 避免收费
  cost Avoid tolls
  hightspeed 高速优先
  hightspeed Highway priority
  multipleroute 多路径
  multipleroute Multiple routes

  说明:
  Description:
  以上参数都是boolean类型，其中multipleroute参数表示是否多条路线，如果为true则此策略会算出多条路线
  All the above parameters are boolean types, The multipleroute parameter indicates whether multiple routes are calculated, If true, this strategy will calculate multiple routes

  注意:
  Note:
  不走高速与高速优先不能同时为true
  Avoid highway and highway priority cannot both be true
  高速优先与避免收费不能同时为true
  Highway priority and avoid tolls cannot both be true

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static int` | `DRIVING_AVOID_CONGESTION` 单路径-时间优先，规避拥堵的路线（考虑实时路况），策略值 4 Single path - time priority, congestion avoidance route (considering real-time traffic conditions), strategy value 4.
    `static int` | `DRIVING_DEFAULT` 已过时。 推荐使用 `PathPlanningStrategy.DRIVING_MULTIPLE_ROUTES_DEFAULT` Recommended to use `PathPlanningStrategy.DRIVING_MULTIPLE_ROUTES_DEFAULT`
    `static int` | `DRIVING_MULTIPLE_PRIORITY_SPEED_COST_DISTANCE` 已过时。 推荐使用 `PathPlanningStrategy.DRIVING_MULTIPLE_ROUTES_DEFAULT` Recommended to use `PathPlanningStrategy.DRIVING_MULTIPLE_ROUTES_DEFAULT`
    `static int` | `DRIVING_MULTIPLE_ROUTES_AVOID_CONGESTION` 多路径-躲避拥堵（考虑路况），策略值 12 Multiple paths - congestion avoidance (considering traffic conditions), strategy value 12.
    `static int` | `DRIVING_MULTIPLE_ROUTES_AVOID_COST` 多路径-躲避收费，策略值 14 Multiple paths - avoid tolls, strategy value 14.
    `static int` | `DRIVING_MULTIPLE_ROUTES_AVOID_COST_CONGESTION` 多路径-躲避收费&躲避拥堵，策略值 17 Multiple paths - avoid tolls & congestion avoidance, strategy value 17.
    `static int` | `DRIVING_MULTIPLE_ROUTES_AVOID_HIGHSPEED` 多路径-不走高速，策略值 13 Multiple paths - avoid highway, strategy value 13.
    `static int` | `DRIVING_MULTIPLE_ROUTES_AVOID_HIGHSPEED_CONGESTION` 多路径-不走高速&躲避拥堵，策略值 15 Multiple paths - avoid highway & congestion avoidance, strategy value 15.
    `static int` | `DRIVING_MULTIPLE_ROUTES_AVOID_HIGHSPEED_COST_CONGESTION` 多路径-不走高速&躲避收费&躲避拥堵，策略值 18 Multiple paths - avoid highway & avoid tolls & congestion avoidance, strategy value 18.
    `static int` | `DRIVING_MULTIPLE_ROUTES_AVOID_HIGHTSPEED_COST` 多路径-不走高速&躲避收费，策略值 16 Multiple paths - avoid highway & avoid tolls, strategy value 16.
    `static int` | `DRIVING_MULTIPLE_ROUTES_DEFAULT` 多路径-速度优先+躲避拥堵+距离较短，建议使用该策略，策略值 10 Multiple paths - speed priority + congestion avoidance + shorter distance, recommended to use this strategy, strategy value 10.
    `static int` | `DRIVING_MULTIPLE_ROUTES_PRIORITY_HIGHSPEED` 多路径-高速优先，策略值 19 Multiple paths - highway priority, strategy value 19.
    `static int` | `DRIVING_MULTIPLE_ROUTES_PRIORITY_HIGHSPEED_AVOID_CONGESTION` 多路径-高速优先&躲避拥堵，策略值 20 Multiple paths - highway priority & congestion avoidance, strategy value 20.
    `static int` | `DRIVING_MULTIPLE_SHORTEST_TIME_DISTANCE` 已过时。 走默认策略 `PathPlanningStrategy.DRIVING_MULTIPLE_ROUTES_DEFAULT` Use default strategy `PathPlanningStrategy.DRIVING_MULTIPLE_ROUTES_DEFAULT`
    `static int` | `DRIVING_NO_EXPRESS_WAYS` 单路径-普通路优先（不走快速路，包含高速路）策略值 3 Single path - ordinary road priority (avoid expressways, including highways) strategy value 3.
    `static int` | `DRIVING_SAVE_MONEY` 单路径-费用优先（尽量避开收费道路，有可能起始点间必有收费路）策略值 1 Single path - cost priority (try to avoid toll roads, there may be toll roads between start and end points) strategy value 1.
    `static int` | `DRIVING_SHORTEST_DISTANCE` 已过时。 推荐使用 `PathPlanningStrategy.DRIVING_MULTIPLE_ROUTES_DEFAULT` Recommended to use `PathPlanningStrategy.DRIVING_MULTIPLE_ROUTES_DEFAULT`
    `static int` | `DRIVING_SINGLE_AVOID_HIGHSPEED_AVOID_CONGESTION` 单路径:不走高速&躲避拥堵 Single route: Avoid highways & Bypass congestion
    `static int` | `DRIVING_SINGLE_AVOID_HIGHSPEED_DISTANCE` 单路径:不走高速&距离优先 Single route: Avoid highways & prioritize distance
    `static int` | `DRIVING_SINGLE_AVOID_HIGHSPEED_PRIORITY_SPEED_COST_DISTANCE` 单路径:不走高速&速度优先&费用优先&距离优先 Single route: avoid highways & speed first & cost first & distance first
    `static int` | `DRIVING_SINGLE_PRIORITY_HIGHSPEED` 单路径:高速优先&速度优先 Single route: highway priority & speed priority
    `static int` | `DRIVING_SINGLE_PRIORITY_HIGHSPEED_AVOID_CONGESTION` 单路径:高速优先&躲避拥堵 Single route: prioritize highways & avoid congestion
    `static int` | `DRIVING_SINGLE_PRIORITY_HIGHSPEED_DISTANCE` 单路径:高速优先&距离优先 Single route: prioritize highway & prioritize distance
    `static int` | `DRIVING_SINGLE_ROUTE_AVOID_CONGESTION_COST` 单路径-躲避收费&躲避拥堵，策略值 8 Single path - avoid tolls & avoid congestion, strategy value 8.
    `static int` | `DRIVING_SINGLE_ROUTE_AVOID_HIGHSPEED` 单路径-不走高速，策略值 6 Single path - avoid highway, strategy value 6.
    `static int` | `DRIVING_SINGLE_ROUTE_AVOID_HIGHSPEED_COST` 单路径-不走高速&躲避收费，策略值 7 Single path - avoid highway & avoid tolls, strategy value 7.
    `static int` | `DRIVING_SINGLE_ROUTE_AVOID_HIGHSPEED_COST_CONGESTION` 单路径-不走高速&躲避收费&躲避拥堵，策略值 9 Single path - avoid highway & avoid tolls & avoid congestion, strategy value 9.
    `static int` | `MOTOR_MULTIPLE_AVOID_COST` 摩托车 - 多路径: 避免收费 Motorcycle - Multiple paths: Avoid tolls.
    `static int` | `MOTOR_MULTIPLE_AVOID_HIGHWAY` 摩托车 - 多路径: 不走高速 Motorcycle - Multiple paths: Avoid highway.
    `static int` | `MOTOR_MULTIPLE_DEFAULT` 摩托车 - 多路径: 默认 Motorcycle - Multiple paths: Default.
    `static int` | `MOTOR_MULTIPLE_PRIORITISE_HIGHWAY` 摩托车 - 多路径: 高速优先 Motorcycle - Multiple paths: Highway priority.
    `static int` | `NO_STRATEGY` 步行和骑行计算出的路线是无策略的，策略值为-1，驾车规划不会出现无策略的情况 Routes calculated for walking and cycling have no strategy, with a strategy value of -1.

  - ### 方法概要

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

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 字段详细资料

    - #### NO_STRATEGY

          public static final int NO_STRATEGY

      步行和骑行计算出的路线是无策略的，策略值为-1，驾车规划不会出现无策略的情况
      Routes calculated for walking and cycling have no strategy, with a strategy value of -1. Driving route planning will not have a no-strategy situation.

      注意:该策略只针对驾车
      Note: This strategy is only for driving

      另请参阅:
        常量字段值

    - #### DRIVING_DEFAULT

          public static final int DRIVING_DEFAULT

      已过时。 推荐使用 `PathPlanningStrategy.DRIVING_MULTIPLE_ROUTES_DEFAULT`
      Recommended to use `PathPlanningStrategy.DRIVING_MULTIPLE_ROUTES_DEFAULT`
      单路径-默认算路模式，速度优先（常规最快）策略值 0
      Single path - default route calculation mode, speed priority (conventional fastest) strategy value 0.

      速度优先（常规默认选项），是指不考虑任何策略的情况下，理想路况下，根据道路固有属性（静态权值）计算得到的路线。
      Speed priority (conventional default option) refers to the route calculated under ideal road conditions without considering any strategies, based on the inherent properties of roads (static weights).

      注意:该策略只针对驾车
      Note: This strategy is only for driving

      另请参阅:
        常量字段值

    - #### DRIVING_SAVE_MONEY

          public static final int DRIVING_SAVE_MONEY

      单路径-费用优先（尽量避开收费道路，有可能起始点间必有收费路）策略值 1
      Single path - cost priority (try to avoid toll roads, there may be toll roads between start and end points) strategy value 1.

      注意:该策略只针对驾车
      Note: This strategy is only for driving

      另请参阅:
        常量字段值

    - #### DRIVING_SHORTEST_DISTANCE

          public static final int DRIVING_SHORTEST_DISTANCE

      已过时。 推荐使用 `PathPlanningStrategy.DRIVING_MULTIPLE_ROUTES_DEFAULT`
      Recommended to use `PathPlanningStrategy.DRIVING_MULTIPLE_ROUTES_DEFAULT`
      单路径-距离优先（距离最短）策略值 2
      Single path - distance priority (shortest distance) strategy value 2.

      注意:该策略只针对驾车
      Note: This strategy is only for driving

      另请参阅:
        常量字段值

    - #### DRIVING_NO_EXPRESS_WAYS

          public static final int DRIVING_NO_EXPRESS_WAYS

      单路径-普通路优先（不走快速路，包含高速路）策略值 3
      Single path - ordinary road priority (avoid expressways, including highways) strategy value 3.

      注意:该策略只针对驾车
      Note: This strategy is only for driving

      另请参阅:
        常量字段值

    - #### DRIVING_AVOID_CONGESTION

          public static final int DRIVING_AVOID_CONGESTION

      单路径-时间优先，规避拥堵的路线（考虑实时路况），策略值 4
      Single path - time priority, congestion avoidance route (considering real-time traffic conditions), strategy value 4.

      注意:该策略只针对驾车
      Note: This strategy is only for driving

      另请参阅:
        常量字段值

    - #### DRIVING_MULTIPLE_PRIORITY_SPEED_COST_DISTANCE

          public static final int DRIVING_MULTIPLE_PRIORITY_SPEED_COST_DISTANCE

      已过时。 推荐使用 `PathPlanningStrategy.DRIVING_MULTIPLE_ROUTES_DEFAULT`
      Recommended to use `PathPlanningStrategy.DRIVING_MULTIPLE_ROUTES_DEFAULT`
      单路径-同时使用速度优先、费用优先、距离优先三个策略计算路径，策略值 5
      Single path - using speed priority, cost priority, and distance priority strategies simultaneously to calculate routes, strategy value 5.

      注意:就算使用三个策略算路，依然返回一条路，该策略只针对驾车
      Note: Even if three strategies are used for route calculation, only one route is returned. This strategy is only for driving

      从以下版本开始:
        5.0.0
      另请参阅:
        常量字段值

    - #### DRIVING_SINGLE_ROUTE_AVOID_HIGHSPEED

          public static final int DRIVING_SINGLE_ROUTE_AVOID_HIGHSPEED

      单路径-不走高速，策略值 6
      Single path - avoid highway, strategy value 6.

      注意:该策略只针对驾车
      Note: This strategy is only for driving

      从以下版本开始:
        2.0
      另请参阅:
        常量字段值

    - #### DRIVING_SINGLE_ROUTE_AVOID_HIGHSPEED_COST

          public static final int DRIVING_SINGLE_ROUTE_AVOID_HIGHSPEED_COST

      单路径-不走高速&躲避收费，策略值 7
      Single path - avoid highway & avoid tolls, strategy value 7.

      注意:该策略只针对驾车
      Note: This strategy is only for driving

      从以下版本开始:
        2.0
      另请参阅:
        常量字段值

    - #### DRIVING_SINGLE_ROUTE_AVOID_CONGESTION_COST

          public static final int DRIVING_SINGLE_ROUTE_AVOID_CONGESTION_COST

      单路径-躲避收费&躲避拥堵，策略值 8
      Single path - avoid tolls & avoid congestion, strategy value 8.

      注意:该策略只针对驾车
      Note: This strategy is only for driving

      从以下版本开始:
        2.0
      另请参阅:
        常量字段值

    - #### DRIVING_SINGLE_ROUTE_AVOID_HIGHSPEED_COST_CONGESTION

          public static final int DRIVING_SINGLE_ROUTE_AVOID_HIGHSPEED_COST_CONGESTION

      单路径-不走高速&躲避收费&躲避拥堵，策略值 9
      Single path - avoid highway & avoid tolls & avoid congestion, strategy value 9.

      注意:该策略只针对驾车
      Note: This strategy is only for driving

      从以下版本开始:
        2.0
      另请参阅:
        常量字段值

    - #### DRIVING_MULTIPLE_ROUTES_DEFAULT

          public static final int DRIVING_MULTIPLE_ROUTES_DEFAULT

      多路径-速度优先+躲避拥堵+距离较短，建议使用该策略，策略值 10
      Multiple paths - speed priority + congestion avoidance + shorter distance, recommended to use this strategy, strategy value 10.

      注意:该策略针对驾车、货车
      Note: This strategy is for driving and truck

      从以下版本开始:
        1.9.0
      另请参阅:
        常量字段值

    - #### DRIVING_MULTIPLE_SHORTEST_TIME_DISTANCE

          public static final int DRIVING_MULTIPLE_SHORTEST_TIME_DISTANCE

      已过时。 走默认策略 `PathPlanningStrategy.DRIVING_MULTIPLE_ROUTES_DEFAULT`
      Use default strategy `PathPlanningStrategy.DRIVING_MULTIPLE_ROUTES_DEFAULT`
      多路径-时间最短+距离最短，策略值 11
      Multiple paths - shortest time + shortest distance, strategy value 11.

      注意:该策略只针对驾车
      Note: This strategy is only for driving

      从以下版本开始:
        1.9.0
      另请参阅:
        常量字段值

    - #### DRIVING_MULTIPLE_ROUTES_AVOID_CONGESTION

          public static final int DRIVING_MULTIPLE_ROUTES_AVOID_CONGESTION

      多路径-躲避拥堵（考虑路况），策略值 12
      Multiple paths - congestion avoidance (considering traffic conditions), strategy value 12.

      注意:该策略针对驾车、货车
      Note: This strategy is for driving and truck

      从以下版本开始:
        1.9.0
      另请参阅:
        常量字段值

    - #### DRIVING_MULTIPLE_ROUTES_AVOID_HIGHSPEED

          public static final int DRIVING_MULTIPLE_ROUTES_AVOID_HIGHSPEED

      多路径-不走高速，策略值 13
      Multiple paths - avoid highway, strategy value 13.

      注意:该策略针对驾车、货车
      Note: This strategy is for driving and truck

      从以下版本开始:
        1.9.0
      另请参阅:
        常量字段值

    - #### DRIVING_MULTIPLE_ROUTES_AVOID_COST

          public static final int DRIVING_MULTIPLE_ROUTES_AVOID_COST

      多路径-躲避收费，策略值 14
      Multiple paths - avoid tolls, strategy value 14.

      注意:该策略针对驾车、货车
      Note: This strategy is for driving and truck

      从以下版本开始:
        1.9.0
      另请参阅:
        常量字段值

    - #### DRIVING_MULTIPLE_ROUTES_AVOID_HIGHSPEED_CONGESTION

          public static final int DRIVING_MULTIPLE_ROUTES_AVOID_HIGHSPEED_CONGESTION

      多路径-不走高速&躲避拥堵，策略值 15
      Multiple paths - avoid highway & congestion avoidance, strategy value 15.

      注意:该策略针对驾车、货车
      Note: This strategy is for driving and truck

      从以下版本开始:
        1.9.0
      另请参阅:
        常量字段值

    - #### DRIVING_MULTIPLE_ROUTES_AVOID_HIGHTSPEED_COST

          public static final int DRIVING_MULTIPLE_ROUTES_AVOID_HIGHTSPEED_COST

      多路径-不走高速&躲避收费，策略值 16
      Multiple paths - avoid highway & avoid tolls, strategy value 16.

      注意:该策略针对驾车、货车
      Note: This strategy is for driving and truck

      从以下版本开始:
        1.9.0
      另请参阅:
        常量字段值

    - #### DRIVING_MULTIPLE_ROUTES_AVOID_COST_CONGESTION

          public static final int DRIVING_MULTIPLE_ROUTES_AVOID_COST_CONGESTION

      多路径-躲避收费&躲避拥堵，策略值 17
      Multiple paths - avoid tolls & congestion avoidance, strategy value 17.

      注意:该策略针对驾车、货车
      Note: This strategy is for driving and truck

      从以下版本开始:
        1.9.0
      另请参阅:
        常量字段值

    - #### DRIVING_MULTIPLE_ROUTES_AVOID_HIGHSPEED_COST_CONGESTION

          public static final int DRIVING_MULTIPLE_ROUTES_AVOID_HIGHSPEED_COST_CONGESTION

      多路径-不走高速&躲避收费&躲避拥堵，策略值 18
      Multiple paths - avoid highway & avoid tolls & congestion avoidance, strategy value 18.

      注意:该策略针对驾车、货车
      Note: This strategy is for driving and truck

      从以下版本开始:
        1.9.0
      另请参阅:
        常量字段值

    - #### DRIVING_MULTIPLE_ROUTES_PRIORITY_HIGHSPEED

          public static final int DRIVING_MULTIPLE_ROUTES_PRIORITY_HIGHSPEED

      多路径-高速优先，策略值 19
      Multiple paths - highway priority, strategy value 19.

      注意:该策略针对驾车、货车
      Note: This strategy is for driving and truck

      从以下版本开始:
        1.9.0
      另请参阅:
        常量字段值

    - #### DRIVING_MULTIPLE_ROUTES_PRIORITY_HIGHSPEED_AVOID_CONGESTION

          public static final int DRIVING_MULTIPLE_ROUTES_PRIORITY_HIGHSPEED_AVOID_CONGESTION

      多路径-高速优先&躲避拥堵，策略值 20
      Multiple paths - highway priority & congestion avoidance, strategy value 20.

      注意:该策略针对驾车、货车
      Note: This strategy is for driving and truck

      从以下版本开始:
        1.9.0
      另请参阅:
        常量字段值

    - #### DRIVING_SINGLE_AVOID_HIGHSPEED_AVOID_CONGESTION

          public static final int DRIVING_SINGLE_AVOID_HIGHSPEED_AVOID_CONGESTION

      单路径:不走高速&躲避拥堵
      Single route: Avoid highways & Bypass congestion
      另请参阅:
        常量字段值

    - #### DRIVING_SINGLE_PRIORITY_HIGHSPEED

          public static final int DRIVING_SINGLE_PRIORITY_HIGHSPEED

      单路径:高速优先&速度优先
      Single route: highway priority & speed priority
      另请参阅:
        常量字段值

    - #### DRIVING_SINGLE_PRIORITY_HIGHSPEED_AVOID_CONGESTION

          public static final int DRIVING_SINGLE_PRIORITY_HIGHSPEED_AVOID_CONGESTION

      单路径:高速优先&躲避拥堵
      Single route: prioritize highways & avoid congestion
      另请参阅:
        常量字段值

    - #### DRIVING_SINGLE_PRIORITY_HIGHSPEED_DISTANCE

          public static final int DRIVING_SINGLE_PRIORITY_HIGHSPEED_DISTANCE

      单路径:高速优先&距离优先
      Single route: prioritize highway & prioritize distance
      另请参阅:
        常量字段值

    - #### DRIVING_SINGLE_AVOID_HIGHSPEED_DISTANCE

          public static final int DRIVING_SINGLE_AVOID_HIGHSPEED_DISTANCE

      单路径:不走高速&距离优先
      Single route: Avoid highways & prioritize distance
      另请参阅:
        常量字段值

    - #### DRIVING_SINGLE_AVOID_HIGHSPEED_PRIORITY_SPEED_COST_DISTANCE

          public static final int DRIVING_SINGLE_AVOID_HIGHSPEED_PRIORITY_SPEED_COST_DISTANCE

      单路径:不走高速&速度优先&费用优先&距离优先
      Single route: avoid highways & speed first & cost first & distance first
      另请参阅:
        常量字段值

    - #### MOTOR_MULTIPLE_DEFAULT

          public static final int MOTOR_MULTIPLE_DEFAULT

      摩托车 - 多路径: 默认
      Motorcycle - Multiple paths: Default.

      注意:该策略仅针对摩托车有效
      Note: This strategy is only valid for motorcycles

      从以下版本开始:
        8.0.0
      另请参阅:
        常量字段值

    - #### MOTOR_MULTIPLE_AVOID_HIGHWAY

          public static final int MOTOR_MULTIPLE_AVOID_HIGHWAY

      摩托车 - 多路径: 不走高速
      Motorcycle - Multiple paths: Avoid highway.

      注意:该策略仅针对摩托车有效
      Note: This strategy is only valid for motorcycles

      从以下版本开始:
        8.0.0
      另请参阅:
        常量字段值

    - #### MOTOR_MULTIPLE_PRIORITISE_HIGHWAY

          public static final int MOTOR_MULTIPLE_PRIORITISE_HIGHWAY

      摩托车 - 多路径: 高速优先
      Motorcycle - Multiple paths: Highway priority.

      注意:该策略仅针对摩托车有效
      Note: This strategy is only valid for motorcycles

      从以下版本开始:
        8.0.0
      另请参阅:
        常量字段值

    - #### MOTOR_MULTIPLE_AVOID_COST

          public static final int MOTOR_MULTIPLE_AVOID_COST

      摩托车 - 多路径: 避免收费
      Motorcycle - Multiple paths: Avoid tolls.

      注意:该策略仅针对摩托车有效
      Note: This strategy is only valid for motorcycles

      从以下版本开始:
        8.0.0
      另请参阅:
        常量字段值