public class

AttachedLocation

extends Object
java.lang.Object
   ↳ com.tencent.map.navi.data.AttachedLocation

Class Overview

导航过程中的定位信息类

Summary

Public Constructors
AttachedLocation()
Public Methods
float getAccuracy()
获取定位精度
double getAltitude()
获取海拔
int getAttachedIndex()
获取吸附点在路线点串中的索引
double getAttachedLatitude()
获取吸附点纬度
double getAttachedLongitude()
获取吸附点经度
ArrayList<BackupRoutePoint> getBackupRoutePoints()
获取伴随路线对应的吸附点信息 BackupRoutePoint
float getDirection()
获取定位点方向
double getLatitude()
获取纬度
int getLeftDistance()
获取总剩余距离
int getLeftTime()
获取总剩余时间
double getLongitude()
获取经度
int getPrePointIndex()
获取该吸附点前一个点的index
String getProvider()
获取定位来源
int getRemainTrafficLightCount()
获取剩余的红绿灯个数。
float getRoadDirection()
获取吸附点所在路线方向
String getRouteID()
获取当前吸附点所在的路线ID.
long getTime()
获取时间戳
float getVelocity()
获取定位点速度
boolean isMockGPS()
该点是否是惯性导航模拟点
boolean isValid()
返回是否为有效吸附点
void setBackupRoutePoints(ArrayList<BackupRoutePoint> backupRoutePoints)
设置伴随路线对应的吸附点信息 BackupRoutePoint
void setPrePointIndex(int prePointIndex)
设置该吸附点前一个点的index
void setRouteID(String routeID)
设置当前吸附点所在路线ID.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AttachedLocation ()

Public Methods

public float getAccuracy ()

获取定位精度

Returns
  • 定位精度 单位:米

public double getAltitude ()

获取海拔

Returns
  • 海拔 单位:米

public int getAttachedIndex ()

获取吸附点在路线点串中的索引

public double getAttachedLatitude ()

获取吸附点纬度

public double getAttachedLongitude ()

获取吸附点经度

public ArrayList<BackupRoutePoint> getBackupRoutePoints ()

获取伴随路线对应的吸附点信息 BackupRoutePoint

Returns
  • 伴随路线上的吸附点

public float getDirection ()

获取定位点方向

Returns
  • 定位点方向 单位:度

public double getLatitude ()

获取纬度

Returns
  • 纬度

public int getLeftDistance ()

获取总剩余距离

Returns
  • 总剩余距离 单位:米

public int getLeftTime ()

获取总剩余时间

Returns
  • 总剩余时间 单位:分钟

public double getLongitude ()

获取经度

Returns
  • 经度

public int getPrePointIndex ()

获取该吸附点前一个点的index

public String getProvider ()

获取定位来源

Returns
  • 定位来源

public int getRemainTrafficLightCount ()

获取剩余的红绿灯个数。

Returns
  • 红绿灯个数

public float getRoadDirection ()

获取吸附点所在路线方向

public String getRouteID ()

获取当前吸附点所在的路线ID.

Returns
  • 路线ID

public long getTime ()

获取时间戳

Returns
  • 时间戳 单位:秒

public float getVelocity ()

获取定位点速度

Returns
  • 定位点速度 单位:米/秒

public boolean isMockGPS ()

该点是否是惯性导航模拟点

public boolean isValid ()

返回是否为有效吸附点

public void setBackupRoutePoints (ArrayList<BackupRoutePoint> backupRoutePoints)

设置伴随路线对应的吸附点信息 BackupRoutePoint

Parameters
backupRoutePoints 伴随路线上的吸附点

public void setPrePointIndex (int prePointIndex)

设置该吸附点前一个点的index

public void setRouteID (String routeID)

设置当前吸附点所在路线ID.

Parameters
routeID 路线ID