com.amap.api.navi.model

## 类 AMapNaviPathGroup

- java.lang.Object
- - com.amap.api.navi.model.AMapNaviPathGroup

-     public class AMapNaviPathGroup
      extends java.lang.Object

  独立算路结果分组
  Independent route calculation result group

- - ### 构造器概要

    构造器
    构造器和说明
    `AMapNaviPathGroup(NaviPath[] paths, long groupPtr, int routeRequestId)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `destroy()`
    `AMapNaviPath` | `getMainPath()` 获取主路线 Get the main route
    `int` | `getMainPathIndex()` 获取主路线的索引 Get the index of the main route
    `AMapNaviPath` | `getPath(int index)` 获取指定索引的路线 Get the route at the specified index
    `int` | `getPathCount()` 获取路线组的路线数量 Get the number of routes in the route group
    `int` | `getRouteRequestId()` 获取路线请求id
    `boolean` | `selectRouteWithIndex(int routeId)` 导航前选择主路线 Select the main route before navigation

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

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

- - ### 构造器详细资料

    - #### AMapNaviPathGroup

          public AMapNaviPathGroup(NaviPath[] paths,
                                   long groupPtr,
                                   int routeRequestId)

  - ### 方法详细资料

    - #### getMainPath

          public AMapNaviPath getMainPath()

      获取主路线
      Get the main route
      返回:
      从以下版本开始:
        7.7.0

    - #### getMainPathIndex

          public int getMainPathIndex()

      获取主路线的索引
      Get the index of the main route
      返回:
      从以下版本开始:
        7.7.0

    - #### getPath

          public AMapNaviPath getPath(int index)

      获取指定索引的路线
      Get the route at the specified index
      参数:
        `index` - 路线索引
        Route index
      返回:
      从以下版本开始:
        7.7.0

    - #### getPathCount

          public int getPathCount()

      获取路线组的路线数量
      Get the number of routes in the route group
      返回:
      从以下版本开始:
        7.7.0

    - #### selectRouteWithIndex

          public boolean selectRouteWithIndex(int routeId)

      导航前选择主路线
      Select the main route before navigation
      参数:
        `routeId` - 主路线的routeId，第一条路为12，第二条为13，第三条为14
        The routeId of the main route, the first route is 12, the second is 13, the third is 14
      从以下版本开始:
        7.7.0

    - #### getRouteRequestId

          public int getRouteRequestId()

      获取路线请求id
      返回:
      从以下版本开始:
        10.1.111

    - #### destroy

          public void destroy()