目录

CoreLocation

Class Info

public class CoreLocation

Internal location information class.

Public Method Summary

Qualifier and Type

Method Name and Description

boolean

isUpdateRoute()

Checks whether the route needs to be updated.

float

getAccuracy()

Obtains the location accuracy.

int

getAlternateRouteId()

Obtains the ID of an alternative route.

double

getAltitude()

Obtains the altitude.

float

getBearing()

Obtains the location bearing.

int

getBranchRouteId1()

Obtains the branch route ID.

int

getBranchRouteId2()

Obtains the branch route ID.

NaviLatLng

getCoord()

Obtains the longitude-latitude coordinates of the current location.

int

getDrivenDistance()

Obtains the driven distance on the current road.

boolean

getIsInertial()

Checks whether the matching is inertial.

int

getLinkIdx()

Obtains the index of the current link.

LocationBase

getMatchLocation()

Obtains the matched location.

int

getPassedShpIdx()

Obtains the index of the pass-through shape point.

int

getPassedViaIdx()

Obtains the ID of the pass-through waypoint.

NaviLatLng

getPosBranch()

Obtains the coordinates of the currently matched branch route.

NaviLatLng

getPosMatch()

Obtains the coordinates of the currently matched road.

NaviLatLng

getPosOrig()

Obtains the original coordinates of the user.

float

getRelativeshapeIndex()

Obtains the relative shape point position.

float

getRoadBearing()

Obtains the road bearing.

float

getSpeed()

Obtains the speed at the current location point. If there is no speed at the location point, 0.0 will be returned.

long

getTime()

Obtains the location time.

String

toString()

Obtains the location information character string.

Public Methods

[h2]isUpdateRoute

Method

public boolean isUpdateRoute()

Checks whether the route needs to be updated.

Returns

Type

Description

boolean

Whether the route needs to be updated.

  • true: yes
  • false: no

[h2]getAccuracy

Method

public float getAccuracy()

Obtains the GPS location accuracy.

Returns

Type

Description

float

GPS location accuracy.

[h2]getAlternateRouteId

Method

public int getAlternateRouteId()

Obtains the ID of an alternative route.

Returns

Type

Description

int

ID of an alternative route.

[h2]getAltitude

Method

public double getAltitude()

Obtains the altitude.

Returns

Type

Description

double

Altitude.

[h2]getBearing

Method

public float getBearing()

Obtains the location bearing.

Returns

Type

Description

float

Location bearing.

[h2]getBranchRouteId1

Method

public int getBranchRouteId1()

Obtains the branch route ID.

Returns

Type

Description

int

Branch route ID.

[h2]getBranchRouteId2

Method

public int getBranchRouteId2()

Obtains the branch route ID.

Returns

Type

Description

int

Branch route ID.

[h2]getCoord

Method

public NaviLatLng getCoord()

Obtains the longitude-latitude coordinates of the current location.

Returns

Type

Description

NaviLatLng

Longitude-latitude coordinates of the current location.

[h2]getDrivenDistance

Method

public int getDrivenDistance()

Obtains the driven distance on the current road.

Returns

Type

Description

int

Driven distance on the current road, in meters.

[h2]getIsInertial

Method

public boolean getIsInertial()

Checks whether the matching is inertial.

Returns

Type

Description

boolean

Whether the matching is inertial.

[h2]getLinkIdx

Method

public int getLinkIdx()

Obtains the index of the current link.

Returns

Type

Description

int

Index of the current link.

[h2]getMatchLocation

Method

public int getMatchLocation()

Obtains the matched location.

Returns

Type

Description

int

Matched location.

[h2]getPassedShpIdx

Method

public int getPassedShpIdx()

Obtains the index of the pass-through shape point.

Returns

Type

Description

int

Index of the pass-through shape point.

[h2]getPassedViaIdx

Method

public int getPassedViaIdx()

Obtains the ID of the pass-through waypoint.

Returns

Type

Description

int

ID of the pass-through waypoint.

[h2]getPosBranch

Method

public NaviLatLng getPosBranch()

Obtains the coordinates of the currently matched branch route.

Returns

Type

Description

NaviLatLng

Coordinates of the currently matched branch route.

[h2]getPosMatch

Method

public NaviLatLng getPosMatch()

Obtains the coordinates of the currently matched road.

Returns

Type

Description

NaviLatLng

Coordinates of the currently matched road.

[h2]getPosOrig

Method

public NaviLatLng getPosOrig()

Obtains the original coordinates of the user.

Returns

Type

Description

NaviLatLng

Original coordinates of the user.

[h2]getRelativeshapeIndex

Method

public float getRelativeshapeIndex()

Obtains the relative shape point position.

Returns

Type

Description

float

Relative shape point position.

[h2]getRoadBearing

Method

public float getRoadBearing()

Obtains the road bearing.

Returns

Type

Description

float

Road bearing.

[h2]getSpeed

Method

public float getSpeed()

Obtains the speed at the current location point. If there is no speed at the location point, 0.0 will be returned.

Returns

Type

Description

float

Speed at the current location point, in km/h. If there is no speed at the location point, 0.0 will be returned.

[h2]getTime

Method

public long getTime()

Obtains the location time.

Returns

Type

Description

long

Location time.

[h2]toString

Method

public String toString()

Obtains the location information character string.

Returns

Type

Description

String

Location information character string.