public class AMapNaviLocation
extends java.lang.Object
| 构造器和说明 |
|---|
AMapNaviLocation() |
| 限定符和类型 | 方法和说明 |
|---|---|
float |
getAccuracy()
获取定位精度
Get positioning accuracy |
double |
getAltitude()
获取海拔高度
Get altitude |
float |
getBearing()
获取定位方向
Get positioning direction |
NaviLatLng |
getCoord()
获取当前位置的经纬度坐标
Get the latitude and longitude coordinates of the current position |
int |
getCurLinkIndex()
获取当前点相对于当前step的link索引
Get the link index of the current point relative to the current step |
int |
getCurPointIndex()
获取当前点相对于当前link的点的索引
Get the point index of the current point relative to the current link |
int |
getCurStepIndex()
获取当前点相对于整条路的step索引
Get the step index of the current point relative to the entire route |
int |
getLocationType()
获取定位方式
Get positioning method |
float |
getRoadBearing()
获取路线方向
Get route direction |
float |
getSpeed()
获取当前定位点的速度
Get the speed of the current positioning point |
java.lang.Long |
getTime()
获取定位时间
Get positioning time |
boolean |
isMatchNaviPath()
当前坐标是否匹配在路线上
Whether the current coordinates match the route |
void |
setAccuracy(float accuracy)
设置定位精度
Set positioning accuracy |
void |
setAltitude(double altitude)
设置海拔高度
Set altitude |
void |
setBearing(float bearing)
设置定位方向
Set positioning direction |
void |
setCoord(NaviLatLng latlng)
设置当前位置的经纬度坐标
Set the latitude and longitude coordinates of the current position. |
void |
setCurLinkIndex(int curLinkIndex) |
void |
setCurPointIndex(int curPointIndex) |
void |
setCurStepIndex(int curStepIndex) |
void |
setLocationType(int locationType)
设置定位方式 0:GPS定位 1:网络定位
Set positioning method 0: GPS positioning 1: Network positioning |
void |
setMatchStatus(int matchStatus)
设置位置匹配状态
Set location matching status |
void |
setRoadBearing(float roadBearing)
设置路线方向
Set route direction |
void |
setSpeed(float speed)
设置当前定位点的速度
Set the speed of the current positioning point. |
void |
setTime(long time)
设置定位时间
Set positioning time. |
public int getCurStepIndex()
public void setCurStepIndex(int curStepIndex)
curStepIndex - public int getCurLinkIndex()
public void setCurLinkIndex(int curLinkIndex)
curLinkIndex - public int getCurPointIndex()
public void setCurPointIndex(int curPointIndex)
curPointIndex - public boolean isMatchNaviPath()
public void setMatchStatus(int matchStatus)
matchStatus - 0 未匹配到路径上,1 匹配到路径上public float getAccuracy()
public void setAccuracy(float accuracy)
accuracy - 定位精度public double getAltitude()
public void setAltitude(double altitude)
altitude - 海拔高度public float getBearing()
public void setBearing(float bearing)
bearing - 定位方位(方向)public float getRoadBearing()
public void setRoadBearing(float roadBearing)
roadBearing - 相对正北方向的角度public float getSpeed()
public void setSpeed(float speed)
speed - 当前定位点的速度,单位:公里/小时。public java.lang.Long getTime()
public void setTime(long time)
定位时间指的是距离1970年 1月 1日 00:00:00 GMT的时间,单位为毫秒。
Positioning time refers to the time since January 1, 1970 00:00:00 GMT, unit: milliseconds.
public NaviLatLng getCoord()
public void setCoord(NaviLatLng latlng)
latlng - 当前位置的经纬度坐标public int getLocationType()
public void setLocationType(int locationType)
locationType -