文档管理中心

NaviLocation

展开

Class Info

public class NaviLocation

GPS位置信息类。

Public Method Summary

展开

Qualifier and Type

Method Name and Description

float

getAccuracy()

获取当前GPS定位精确度值。

double

getAltitude()

获取海拔高度。

float

getBearing()

获取定位方位。

NaviLatLng

getCoord()

获取位置的经纬度坐标。

boolean

getIsInertial()

获取惯性匹配标识。

NaviLatLng

getMatchCoord()

获取匹配到规划路线的经纬度坐标。

int

getMatchStatus()

获取路径匹配状态。

NaviLatLng

getOrigCoord()

获取原始位置的经纬度坐标。

float

getOriginSpeed()

获取当前定位点的原始速度。

float

getRelativeShpIdx()

获取相对坐标索引,4K导航使用。

float

getRoadBearing()

获取道路方位。

int

getShpIdx()

获取经过的路段下标。

float

getSpeed()

获取定位点的速度(公制速度)。

long

getTime()

获取定位时间。

int

getViaIdx()

获取经过第几个途经点。

boolean

isMatchNaviPath()

获取当前位置是否匹配到道路上。

Location

toLocation()

转换成Android系统Location对象。

String

toString()

GPS位置信息转换String。

Public Methods

getAccuracy

展开

Method

public float getAccuracy()

您调用此API可以获取当前GPS定位精确度值。

Returns

展开

Type

Description

float

返回当前GPS定位精确度值。

getAltitude

展开

Method

public double getAltitude()

您调用此API可以获取海拔高度。

Returns

展开

Type

Description

double

返回海拔高度。

getBearing

展开

Method

public float getBearing()

您调用此API可以获取定位方位。

Returns

展开

Type

Description

float

返回定位方位值。

getCoord

展开

Method

public NaviLatLng getCoord()

您调用此API可以获取位置的经纬度坐标。

Returns

展开

Type

Description

NaviLatLng

导航经纬度对象类。

getIsInertial

展开

Method

public boolean getIsInertial()

您调用此API可以获取惯性匹配标识。

Returns

展开

Type

Description

boolean

返回是否匹配惯性。

getMatchCoord

展开

Method

public NaviLatLng getMatchCoord()

您调用此API可以获取匹配到规划路线的经纬度坐标。

Returns

展开

Type

Description

NaviLatLng

导航经纬度对象类。

getMatchStatus

展开

Method

public int getMatchStatus()

您调用此API可以获取路径匹配状态。

Returns

展开

Type

Description

int

路径匹配状态。

  • 0 未匹配到路径上
  • 1 匹配到路径上

getOrigCoord

展开

Method

public NaviLatLng getOrigCoord()

您调用此API可以获取原始位置的经纬度坐标。

Returns

展开

Type

Description

NaviLatLng

导航经纬度对象类。

getOriginSpeed

展开

Method

public float getOriginSpeed()

您调用此API可以获取当前定位点的原始速度。

Returns

展开

Type

Description

float

当前定位点的原始速度,单位:km/h。

getRelativeShpIdx

展开

Method

public float getRelativeShpIdx()

您调用此API可以获取相对坐标索引,4K导航使用。

Returns

展开

Type

Description

float

相对坐标索引。

getRoadBearing

展开

Method

public float getRoadBearing()

您调用此API可以获取道路方位。

Returns

展开

Type

Description

float

道路方位值。

getShpIdx

展开

Method

public int getShpIdx()

您调用此API可以获取经过的路段下标。

Returns

展开

Type

Description

int

经过的路段下标。

getSpeed

展开

Method

public float getSpeed()

您调用此API可以获取定位点的速度(公制速度)。

Returns

展开

Type

Description

float

当前定位点的速度(公制速度),单位:km/h。

getTime

展开

Method

public long getTime()

您调用此API可以获取定位时间。

Returns

展开

Type

Description

long

定位的时间。

getViaIdx

展开

Method

public int getViaIdx()

您调用此API可以获取经过第几个途经点。

Returns

展开

Type

Description

int

经过第几个途经点。

isMatchNaviPath

展开

Method

public boolean isMatchNaviPath()

您调用此API可以获取当前位置是否匹配到道路上。

Returns

展开

Type

Description

boolean

当前位置是否匹配到道路上。

toLocation

展开

Method

public Location toLocation()

您调用此API可以转换成Android系统Location对象。

Returns

展开

Type

Description

Location

Android系统Location对象。

toString

展开

Method

public String toString()

您调用此API可以把GPS位置信息转换String。

Returns

展开

Type

Description

String

GPS位置信息。

在 API参考 中进行搜索
请输入您想要搜索的关键词