public class AMapNaviPath
extends java.lang.Object
| 构造器和说明 |
|---|
AMapNaviPath() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.List<AMapNaviCameraInfo> |
getAllCameras()
获取全路段的所有摄像头
Get all cameras on the entire route. |
int |
getAllLength()
返回当前导航路线的总长度
Return the total length of the current navigation route. |
int |
getAllTime()
返回当前导航路径所需的时间,单位为秒
Return the time required for the current navigation path, in seconds. |
com.amap.api.maps.model.LatLngBounds |
getBoundsForPath()
获取该导航路线最小坐标点和最大坐标点围成的矩形区域
Get the rectangular area formed by the minimum and maximum coordinate points of the navigation route. |
NaviLatLng |
getCenterForPath()
返回当前导航路线的中心点
Return the center point of the current navigation route. |
int[] |
getCityAdcodeList()
获取驾车导航路线上沿途城市adcode列表
Get the list of city adcodes along the driving navigation route. |
java.util.List<NaviLatLng> |
getCoordList()
返回当前导航路线的所有坐标点
Return all coordinate points of the current navigation route. |
NaviLatLng |
getEndPoint()
获取当前路线方案的搜索终点(中心点)坐标
Get the search end point (center point) coordinates of the current route plan. |
java.util.List<AMapNaviForbiddenInfo> |
getForbiddenInfos()
获取货车导航的禁止信息列表
Get the list of prohibition information for truck navigation. |
java.lang.String |
getLabels()
获取当前路线的策略标签,如:距离最短,费用最少
Get the strategy label of the current route, such as: shortest distance, lowest cost. |
java.util.List<NaviLatLng> |
getLightList()
获取道路上的红绿灯列表
Get the list of traffic lights on the road |
java.util.List<AMapNaviLimitInfo> |
getLimitInfos()
获取货车导航的限制信息列表
Get the list of restriction information for truck navigation. |
java.lang.String |
getMainRoadInfo()
获取主道路信息
Get main road information. |
java.util.List<AMapNaviRouteGuideGroup> |
getNaviGuideList()
获取路线详情
Get route details |
long |
getPathid()
获取路线id
Get route ID |
AMapRestrictionInfo |
getRestrictionInfo()
获取当前导航路线的限行信息
Get the restriction information of the current navigation route. |
int |
getRouteType()
获取路线交通类型
Get route traffic type |
NaviLatLng |
getStartPoint()
获取当前路线方案的搜索起点坐标
Get the search start point coordinates of the current route plan. |
java.util.List<AMapNaviStep> |
getSteps()
返回当前导航路线上的分段列表
Return the list of segments on the current navigation route |
int |
getStepsCount()
返回当前导航路线上分段的总数
Return the total number of segments on the current navigation route. |
int |
getTollCost()
获取导航段的花费金额,单位元
Get the cost of the navigation segment, in yuan. |
java.util.List<AMapTrafficIncidentInfo> |
getTrafficIncidentInfo()
获取路径交通事件信息
Get path traffic incident information. |
int |
getTrafficLightCount()
获取红绿灯总数
Get the total number of traffic lights |
java.util.List<AMapTrafficStatus> |
getTrafficStatuses()
获取当前路线的交通状态
Get the traffic status of the current route. |
java.util.List<NaviLatLng> |
getWayPoint()
获取当前路径的途经点坐标
Get the coordinates of waypoints on the current path. |
int[] |
getWayPointIndex()
获取途经点在路线点集中的索引
Get the index of waypoints in the route point set. |
boolean |
isMpidRestoreRoute()
获取是否mpid还原出的路线
"Get whether the route is restored from mpid." |
public boolean isMpidRestoreRoute()
public long getPathid()
public java.lang.String getMainRoadInfo()
注意:该接口仅驾车模式有效
Note: This interface is only valid in driving mode
public java.util.List<AMapNaviCameraInfo> getAllCameras()
注意:该接口仅驾车模式有效
Note: This interface is only valid in driving mode
public int[] getWayPointIndex()
注意:该接口仅驾车模式有效
Note: This interface is only valid in driving mode
public java.util.List<NaviLatLng> getWayPoint()
注意:该接口仅驾车模式有效
Note: This interface is only valid in driving mode
public NaviLatLng getStartPoint()
public NaviLatLng getEndPoint()
public NaviLatLng getCenterForPath()
public com.amap.api.maps.model.LatLngBounds getBoundsForPath()
该方法需要在地图载入成功后使用。返回的LatLngBounds用法见地图包。
This method needs to be used after the map is loaded successfully. See the map package for the usage of the returned LatLngBounds.
public java.util.List<AMapNaviStep> getSteps()
AMapNaviStep 的列表AMapNaviSteppublic java.util.List<NaviLatLng> getCoordList()
public int getAllLength()
public int getAllTime()
public int getStepsCount()
public int getTollCost()
注意:该接口仅驾车模式有效
Note: This interface is only valid in driving mode
public java.util.List<AMapTrafficStatus> getTrafficStatuses()
注意:该接口仅驾车模式有效
Note: This interface is only valid in driving mode
public java.lang.String getLabels()
注意:该接口仅驾车模式有效
Note: This interface is only valid in driving mode
public AMapRestrictionInfo getRestrictionInfo()
注意:该接口仅驾车模式有效
Note: This interface is only valid in driving mode
public int[] getCityAdcodeList()
注意:该接口仅驾车模式有效
Note: This interface is only valid in driving mode
public java.util.List<NaviLatLng> getLightList()
public java.util.List<AMapNaviLimitInfo> getLimitInfos()
注意:该接口仅货车模式有效
Note: This interface is only valid in truck mode
public java.util.List<AMapNaviForbiddenInfo> getForbiddenInfos()
注意:该接口仅货车模式有效
Note: This interface is only valid in truck mode
public java.util.List<AMapTrafficIncidentInfo> getTrafficIncidentInfo()
注意:该接口仅货车模式有效
Note: This interface is only valid in truck mode
public int getTrafficLightCount()
public java.util.List<AMapNaviRouteGuideGroup> getNaviGuideList()
public int getRouteType()