public class AMapNaviPathGroup
extends java.lang.Object
| 构造器和说明 |
|---|
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 |
public AMapNaviPathGroup(NaviPath[] paths,
long groupPtr,
int routeRequestId)
public AMapNaviPath getMainPath()
public int getMainPathIndex()
public AMapNaviPath getPath(int index)
index - 路线索引public int getPathCount()
public boolean selectRouteWithIndex(int routeId)
routeId - 主路线的routeId,第一条路为12,第二条为13,第三条为14public int getRouteRequestId()
public void destroy()