com.baidu.mapapi
类 MKRoutePlan

java.lang.Object
  继承者 com.baidu.mapapi.MKRoutePlan

public class MKRoutePlan
extends java.lang.Object

此类表示一条驾车或步行出行方案


构造方法摘要
MKRoutePlan()
           
 
方法摘要
 int getDistance()
          返回方案总距离
 int getNumRoutes()
          返回方案包含的线路的个数
 MKRoute getRoute(int index)
          返回方案中索引指定的线路
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

MKRoutePlan

public MKRoutePlan()
方法详细信息

getNumRoutes

public int getNumRoutes()
返回方案包含的线路的个数

返回:
线路的个数

getRoute

public MKRoute getRoute(int index)
返回方案中索引指定的线路

参数:
index - 索引, 0表示第一条线路
返回:
返回索引指向的线路

getDistance

public int getDistance()
返回方案总距离

返回:
距离