public class

TLSBDriverPosition

extends TLSBPosition
java.lang.Object
   ↳ com.tencent.map.lssupport.bean.TLSBPosition
     ↳ com.tencent.map.lssupport.bean.TLSBDriverPosition

Class Overview

司机的位置数据。

Summary

[Expand]
Inherited Constants
From class com.tencent.map.lssupport.bean.TLSBPosition
Public Constructors
TLSBDriverPosition()
Public Methods
double getAttachLat()
获取导航过程中的吸附点纬度。
double getAttachLng()
获取导航过程中的吸附点精度。
float getMatchedCourse()
获取吸附点方向。
int getPointIndex()
获取导航过程中的吸附点所在的路线点串索引。
int getRemainingDistance()
获取到达终点的剩余距离。
int getRemainingTime()
获取到达终点的剩余时间。
String getRouteId()
获取路线id。
List<TLSBWayPoint> getWayPoints()
获取途经点的相关信息。
void setAttachLat(double attachLat)
设置导航过程中的吸附点纬度。
void setAttachLng(double attachLng)
设置导航过程中的吸附点经度。
void setMatchedCourse(float matchedCourse)
设置吸附点方向。
void setMatchedPosition(double attachLat, double attachLng)
设置在导航过程中的吸附点纬度和经度。
void setPointIndex(int pointIndex)
设置导航过程中的吸附点所在的路线点串索引。
void setRemainingDistance(int remainingDistance)
设置到达终点的剩余距离。
void setRemainingTime(int remainingTime)
设置到达终点的剩余时间。
void setRouteId(String routeId)
设置路线id。
void setWayPoints(List<TLSBWayPoint> wayPoints)
设置途经点的相关信息。
[Expand]
Inherited Methods
From class com.tencent.map.lssupport.bean.TLSBPosition
From class java.lang.Object

Public Constructors

public TLSBDriverPosition ()

Public Methods

public double getAttachLat ()

获取导航过程中的吸附点纬度。

Returns
  • 吸附点纬度

public double getAttachLng ()

获取导航过程中的吸附点精度。

Returns
  • 吸附点经度

public float getMatchedCourse ()

获取吸附点方向。

Returns
  • 吸附点方向,单位:度

public int getPointIndex ()

获取导航过程中的吸附点所在的路线点串索引。

Returns
  • 点串索引值,未吸附成功/未导航时,返回-1

public int getRemainingDistance ()

获取到达终点的剩余距离。

Returns
  • 剩余距离,单位:米

public int getRemainingTime ()

获取到达终点的剩余时间。

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

public String getRouteId ()

获取路线id。

Returns
  • 路线id

public List<TLSBWayPoint> getWayPoints ()

获取途经点的相关信息。

Returns

public void setAttachLat (double attachLat)

设置导航过程中的吸附点纬度。

Parameters
attachLat 吸附点纬度

public void setAttachLng (double attachLng)

设置导航过程中的吸附点经度。

Parameters
attachLng 吸附点经度

public void setMatchedCourse (float matchedCourse)

设置吸附点方向。

Parameters
matchedCourse 吸附点方向,单位:度 此字段在导航SDK中返回

public void setMatchedPosition (double attachLat, double attachLng)

设置在导航过程中的吸附点纬度和经度。

Parameters
attachLat 吸附点纬度 该信息在导航sdk中返回
attachLng 吸附点经度 该信息在导航sdk中返回

public void setPointIndex (int pointIndex)

设置导航过程中的吸附点所在的路线点串索引。

Parameters
pointIndex 点串索引值 该信息在导航sdk中返回

public void setRemainingDistance (int remainingDistance)

设置到达终点的剩余距离。

Parameters
remainingDistance 剩余距离,单位:米

public void setRemainingTime (int remainingTime)

设置到达终点的剩余时间。

Parameters
remainingTime 剩余时间,单位:分钟

public void setRouteId (String routeId)

设置路线id。

Parameters
routeId 路线id

public void setWayPoints (List<TLSBWayPoint> wayPoints)

设置途经点的相关信息。

Parameters
wayPoints 途经点信息 具体查看TLSBWayPoint