public class CldRoutePlaner
extends java.lang.Object
| 限定符和类型 | 类和说明 | 
|---|---|
static interface  | 
CldRoutePlaner.RoutePlanListener
路径规划回调 
 | 
| 构造器和说明 | 
|---|
CldRoutePlaner()  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
void | 
clearRoute()
清除路径 
 | 
static CldRoutePlaner | 
getInstance()
路径规划对象 
 | 
int | 
getNumOfMulRoute()
获取路径数量 
 | 
long[] | 
getRouteDistanceAndTime(int index)
获取路径总距离和总时间 
 | 
java.lang.String | 
getRouteMainRoadName(int index,
                    int numRoadName)
获取路径上主要路名 
 | 
java.lang.String | 
getRouteShareUrl()
获取规划路径的分享链接 
 | 
int | 
getSelectedRouteIndex()
获取当前选择的路径编号 
 | 
int | 
getTrafficLightCount(int routeIndex)
获取红绿灯个数 
 | 
boolean | 
hasPlannedRoute()
是否有规划或者正在规划路径 
 | 
void | 
routePlan(Context context,
         RoutePlanNode destinationNode,
         int planPreference,
         CldRoutePlaner.RoutePlanListener routePlanListener)
只有目的地参数路径规划函数 
 | 
void | 
routePlan(Context context,
         RoutePlanNode destinationNode,
         int planPreference,
         CldRoutePlaner.RoutePlanListener routePlanListener,
         int planNetType)
只有目的地参数路径规划函数 
 | 
void | 
routePlan(Context context,
         RoutePlanNode startNode,
         java.util.List<RoutePlanNode> passNode,
         RoutePlanNode destinationNode,
         int planPreference,
         CldRoutePlaner.RoutePlanListener routePlanListener)
路径规划函数 
 | 
void | 
routePlan(Context context,
         RoutePlanNode startNode,
         java.util.List<RoutePlanNode> passNode,
         RoutePlanNode destinationNode,
         int planPreference,
         CldRoutePlaner.RoutePlanListener routePlanListener,
         int planNetType)
路径规划函数 
 | 
void | 
routePlan(Context context,
         RoutePlanNode startNode,
         java.util.List<RoutePlanNode> passNode,
         RoutePlanNode destinationNode,
         int planPreference,
         CldRoutePlaner.RoutePlanListener routePlanListener,
         int planNetType,
         LimitConfig limitConfig)
路径规划函数 
 | 
void | 
setSelectRouteByIndex(int index)
根据多路径编号设置需要选择的路径 
 | 
public static CldRoutePlaner getInstance()
public void routePlan(Context context,
                      RoutePlanNode destinationNode,
                      int planPreference,
                      CldRoutePlaner.RoutePlanListener routePlanListener)
destinationNode - 目的地坐标参数planPreference - 规划路径方式 参考RoutePlanPreferenceroutePlanListener - 路径规划结果监听器 参考RoutePlanListener类 可传null值public void routePlan(Context context,
                      RoutePlanNode destinationNode,
                      int planPreference,
                      CldRoutePlaner.RoutePlanListener routePlanListener,
                      int planNetType)
destinationNode - 目的地坐标参数planPreference - 规划路径方式 参考RoutePlanPreferenceroutePlanListener - 路径规划结果监听器 参考RoutePlanListener类 可传null值planNetType - 路线规划在线离线切换类型,1:在线转离线,2:纯在线,3:纯离线public void routePlan(Context context,
                      RoutePlanNode startNode,
                      java.util.List<RoutePlanNode> passNode,
                      RoutePlanNode destinationNode,
                      int planPreference,
                      CldRoutePlaner.RoutePlanListener routePlanListener)
startNode - 起点坐标参数passNode - 经由地坐标参数列表, 没有时传nulldestinationNode - 目的地坐标参数planPreference - 规划路径方式 参考RoutePlanPreferenceroutePlanListener - 路径规划结果监听器 参考RoutePlanListener类public void routePlan(Context context,
                      RoutePlanNode startNode,
                      java.util.List<RoutePlanNode> passNode,
                      RoutePlanNode destinationNode,
                      int planPreference,
                      CldRoutePlaner.RoutePlanListener routePlanListener,
                      int planNetType)
startNode - 起点坐标参数passNode - 经由地坐标参数列表, 没有时传nulldestinationNode - 目的地坐标参数planPreference - 规划路径方式 参考RoutePlanPreferenceroutePlanListener - 路径规划结果监听器 参考RoutePlanListener类planNetType - 路线规划在线离线切换类型,1:在线转离线,2:纯在线,3:纯离线;参考PlanNetConfig类public void routePlan(Context context,
                      RoutePlanNode startNode,
                      java.util.List<RoutePlanNode> passNode,
                      RoutePlanNode destinationNode,
                      int planPreference,
                      CldRoutePlaner.RoutePlanListener routePlanListener,
                      int planNetType,
                      LimitConfig limitConfig)
startNode - 起点坐标参数passNode - 经由地坐标参数列表, 没有时传nulldestinationNode - 目的地坐标参数planPreference - 规划路径方式 参考RoutePlanPreferenceroutePlanListener - 路径规划结果监听器 参考RoutePlanListener类planNetType - 路线规划在线离线切换类型,1:在线转离线,2:纯在线,3:纯离线;参考PlanNetConfig类public boolean hasPlannedRoute()
public void clearRoute()
public void setSelectRouteByIndex(int index)
index - 编号public int getSelectedRouteIndex()
public int getNumOfMulRoute()
public java.lang.String getRouteMainRoadName(int index,
                                             int numRoadName)
index - 当前路径编号,默认是1numRoadName - 返回路名数量public long[] getRouteDistanceAndTime(int index)
index - 当前路径编号,默认是1public int getTrafficLightCount(int routeIndex)
routeIndex - public java.lang.String getRouteShareUrl()