public class NaviInfo
extends java.lang.Object
| 构造器和说明 |
|---|
NaviInfo() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getCurLink()
获取自车所在小路段索引
Get current minor segment index of the vehicle |
int |
getCurLinkRetainDistance()
获取当前Link段剩余距离
Get the remaining distance of the current link segment 注意:该接口仅驾车模式有效 note:This interface is only valid for driving mode |
int |
getCurPoint()
获取当前位置所在link上的点索引
Get point index on the link where the current position is located |
java.lang.String |
getCurrentRoadName()
获取当前路线名称
Get current route name |
int |
getCurrentSpeed()
已过时。
请从定位回调
AMapNaviListener.onLocationChange(AMapNaviLocation) 中获取当前车速Please get current vehicle speed from location callback AMapNaviListener.onLocationChange(AMapNaviLocation) |
int |
getCurStep()
获取当前大路段索引
Get current major segment index |
int |
getCurStepRetainDistance()
获取当前路段剩余距离
Get remaining distance of the current segment. |
int |
getCurStepRetainTime()
获取当前路段剩余时间
Get remaining time of the current segment. |
AMapExitDirectionInfo |
getExitDirectionInfo()
获取出口方向信息
Get exit direction information |
Bitmap |
getIconBitmap()
获取转向图标bitmap
Get turn icon bitmap. |
int |
getIconType()
获取导航转向图标类型
Get navigation turn icon type. |
int |
getNaviType()
导航信息类型
Navigation information type |
java.lang.String |
getNextRoadName()
获取下条路名
Get next road name |
AMapNotAvoidInfo |
getNotAvoidInfo()
获取未避开的禁行、限行信息
Get unavioded prohibition and restriction information |
long |
getPathId()
获取线路ID
Get route ID 注意:该接口仅驾车模式有效 Note: This interface is only valid for driving mode |
int |
getPathRetainDistance()
获取路线剩余距离
Get remaining distance of the route. |
int |
getPathRetainTime()
获取路线剩余时间(单位秒)
Get remaining time of the route (unit: second) |
int |
getRouteRemainLightCount()
获取路径剩余红绿灯数量
Get number of remaining traffic lights on the route. |
AMapNaviToViaInfo[] |
getToViaInfo()
获取当前位置到剩余途经点的信息
Get information from current position to remaining waypoints |
void |
setRouteRemainLightCount(int routeRemainLightCount)
设置路径剩余红绿灯数量
Set number of remaining traffic lights on the route |
public long getPathId()
注意:该接口仅驾车模式有效
Note: This interface is only valid for driving mode
public AMapExitDirectionInfo getExitDirectionInfo()
AMapExitDirectionInfoAMapExitDirectionInfopublic int getCurrentSpeed()
AMapNaviListener.onLocationChange(AMapNaviLocation) 中获取当前车速AMapNaviListener.onLocationChange(AMapNaviLocation)public int getNaviType()
public java.lang.String getCurrentRoadName()
public java.lang.String getNextRoadName()
public int getIconType()
注意,当 NaviInfo.getIconBitmap() 有返回值的时候,请优先使用其返回的Bitmap来绘制转向图标,这样结果更加准确。
Note, when NaviInfo.getIconBitmap() has a return value, please use the returned Bitmap to draw the turn icon first, so the result will be more accurate.
public int getPathRetainDistance()
注意:该接口仅驾车模式有效
Note: This interface is only valid for driving mode
public int getPathRetainTime()
public int getCurStepRetainDistance()
注意:该接口仅驾车模式有效
Note: This interface is only valid for driving mode
public int getCurLinkRetainDistance()
public int getCurStepRetainTime()
注意:该接口仅驾车模式有效
Note: This interface is only valid for driving mode
public int getCurStep()
public int getCurLink()
public int getCurPoint()
public Bitmap getIconBitmap()
此接口可能返回为空,返回空的情况下,请使用 NaviInfo.getIconType() 来判别转向类型。请优先使用此接口来绘制转向图标。
This interface may return null. In case of null return, please use NaviInfo.getIconType() to determine the turn type. Please use this interface first to draw the turn icon.
public int getRouteRemainLightCount()
注意:该接口仅驾车模式有效
Note: This interface is only valid for driving mode
public void setRouteRemainLightCount(int routeRemainLightCount)
routeRemainLightCount - public AMapNotAvoidInfo getNotAvoidInfo()
public AMapNaviToViaInfo[] getToViaInfo()