目录

CoreLocation

Class Info

public class CoreLocation

内部定位信息类。

Public Method Summary

Qualifier and Type

Method Name and Description

boolean

isUpdateRoute()

是否需要刷新路线。

float

getAccuracy()

返回定位精度。

int

getAlternateRouteId()

获取备选路线ID。

double

getAltitude()

返回海拔高度。

float

getBearing()

获取定位方位(方向)。

int

getBranchRouteId1()

获取鱼骨图路线ID。

int

getBranchRouteId2()

获取鱼骨图路线ID。

NaviLatLng

getCoord()

返回当前位置的经纬度坐标。

int

getDrivenDistance()

获取当前道路行驶距离。

boolean

getIsInertial()

获取是否惯性匹配。

int

getLinkIdx()

获取当前所在link索引。

LocationBase

getMatchLocation()

获取基础匹配位置信息。

int

getPassedShpIdx()

获取已经过的形点下标。

int

getPassedViaIdx()

获取已经过的途径id。

NaviLatLng

getPosBranch()

返回当前匹配的鱼骨图道路坐标。

NaviLatLng

getPosMatch()

返回当前匹配的道路坐标。

NaviLatLng

getPosOrig()

返回用户原始坐标。

float

getRelativeshapeIndex()

返回相对形点位置。

float

getRoadBearing()

获取道路方位(方向)。

float

getSpeed()

返回当前定位点的速度, 如果此位置不具有速度,则返回0.0。

long

getTime()

返回定位时间。

String

toString()

获取定位信息字符串。

Public Methods

[h2]isUpdateRoute

Method

public boolean isUpdateRoute()

获取是否需要刷新路线。

Returns

Type

Description

boolean

是否需要刷新路线

  • true:是
  • false:否

[h2]getAccuracy

Method

public float getAccuracy()

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

Returns

Type

Description

float

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

[h2]getAlternateRouteId

Method

public int getAlternateRouteId()

获取备选路线ID。

Returns

Type

Description

int

返回备选路线ID。

[h2]getAltitude

Method

public double getAltitude()

获取海拔高度。

Returns

Type

Description

double

返回海拔高度。

[h2]getBearing

Method

public float getBearing()

获取定位方位(方向)。

Returns

Type

Description

float

返回定位方位(方向)。

[h2]getBranchRouteId1

Method

public int getBranchRouteId1()

获取鱼骨图路线ID。

Returns

Type

Description

int

返回鱼骨图路线ID。

[h2]getBranchRouteId2

Method

public int getBranchRouteId2()

获取鱼骨图路线ID。

Returns

Type

Description

int

返回鱼骨图路线ID。

[h2]getCoord

Method

public NaviLatLng getCoord()

获取当前位置的经纬度坐标。

Returns

Type

Description

NaviLatLng

返回当前位置的经纬度坐标。

[h2]getDrivenDistance

Method

public int getDrivenDistance()

获取当前道路行驶距离。

Returns

Type

Description

int

返回当前道路行驶距离,单位:米。

[h2]getIsInertial

Method

public boolean getIsInertial()

获取是否惯性匹配。

Returns

Type

Description

boolean

返回是否惯性匹配。

[h2]getLinkIdx

Method

public int getLinkIdx()

获取当前所在link索引。

Returns

Type

Description

int

返回当前所在link索引。

[h2]getMatchLocation

Method

public int getMatchLocation()

获取基础匹配位置信息。

Returns

Type

Description

int

基础匹配位置信息。

[h2]getPassedShpIdx

Method

public int getPassedShpIdx()

获取已经过的形点下标。

Returns

Type

Description

int

返回已经过的形点下标。

[h2]getPassedViaIdx

Method

public int getPassedViaIdx()

获取已经过的途径id。

Returns

Type

Description

int

返回已经过的途径id。

[h2]getPosBranch

Method

public NaviLatLng getPosBranch()

获取当前匹配的鱼骨图道路坐标。

Returns

Type

Description

NaviLatLng

返回当前匹配的鱼骨图道路坐标。

[h2]getPosMatch

Method

public NaviLatLng getPosMatch()

获取当前匹配的道路坐标。

Returns

Type

Description

NaviLatLng

返回当前匹配的道路坐标。

[h2]getPosOrig

Method

public NaviLatLng getPosOrig()

获取用户原始位置坐标。

Returns

Type

Description

NaviLatLng

用户原始位置坐标。

[h2]getRelativeshapeIndex

Method

public float getRelativeshapeIndex()

获取相对形点位置。

Returns

Type

Description

float

相对形点位置。

[h2]getRoadBearing

Method

public float getRoadBearing()

获取道路方位(方向)。

Returns

Type

Description

float

返回道路方位(方向)。

[h2]getSpeed

Method

public float getSpeed()

获取当前定位点的速度, 如果此位置不具有速度,则返回0.0。

Returns

Type

Description

float

返回当前定位点的速度,单位:km/h,如果此位置不具有速度,则返回0.0。

[h2]getTime

Method

public long getTime()

获取定位时间。

Returns

Type

Description

long

返回定位时间。

[h2]toString

Method

public String toString()

获取定位信息字符串。

Returns

Type

Description

String

定位信息字符串。