public class

CacheTracePointImpl

extends Object
implements CacheTracePoint
java.lang.Object
   ↳ com.tencent.trackx.api.CacheTracePointImpl

Summary

Public Methods
CacheTracePoint addExtraParam(String key, String value)
添加自定义参数
CacheTracePoint copyFrom(TracePoint tracePoint)
static CacheTracePointImpl create()
float getAccuracy()
获取精度
double getAltitude()
获取海拔
float getDirection()
获取GPS方向
Map<String, String> getExtraParams()
获取自定义参数
double getLatitude()
获取纬度
double getLongitude()
获取经度
double getPhoneDirection()
获取手机朝向
String getProvider()
获取类型
float getSpeed()
获取速度
long getTime()
获取时间戳
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.tencent.trackx.api.model.CacheTracePoint
From interface com.tencent.trackx.api.model.TracePoint

Public Methods

public CacheTracePoint addExtraParam (String key, String value)

添加自定义参数

Parameters
key 键
value 值
Returns

public CacheTracePoint copyFrom (TracePoint tracePoint)

public static CacheTracePointImpl create ()

public float getAccuracy ()

获取精度

Returns
  • 精度

public double getAltitude ()

获取海拔

Returns
  • 海拔

public float getDirection ()

获取GPS方向

Returns
  • GPS方向

public Map<String, String> getExtraParams ()

获取自定义参数

Returns
  • 自定义参数

public double getLatitude ()

获取纬度

Returns
  • 纬度

public double getLongitude ()

获取经度

Returns
  • 经度

public double getPhoneDirection ()

获取手机朝向

Returns
  • 手机朝向

public String getProvider ()

获取类型

Returns
  • 类型

public float getSpeed ()

获取速度

Returns
  • 速度

public long getTime ()

获取时间戳

Returns
  • 时间戳

public String toString ()