Class Info |
|---|
public class CoreLocation Internal location information class. |
Qualifier and Type | Method Name and Description |
|---|---|
boolean | Checks whether the route needs to be updated. |
float | Obtains the location accuracy. |
int | Obtains the ID of an alternative route. |
double | Obtains the altitude. |
float | Obtains the location bearing. |
int | Obtains the branch route ID. |
int | Obtains the branch route ID. |
getCoord() Obtains the longitude-latitude coordinates of the current location. | |
int | Obtains the driven distance on the current road. |
boolean | Checks whether the matching is inertial. |
int | Obtains the index of the current link. |
| Obtains the matched location. | |
int | Obtains the index of the pass-through shape point. |
int | Obtains the ID of the pass-through waypoint. |
| Obtains the coordinates of the currently matched branch route. | |
| Obtains the coordinates of the currently matched road. | |
| Obtains the original coordinates of the user. | |
float | Obtains the relative shape point position. |
float | 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. |
Method |
|---|
public boolean isUpdateRoute() Checks whether the route needs to be updated. |
Returns
Type | Description |
|---|---|
boolean | Whether the route needs to be updated.
|
Method |
|---|
public float getAccuracy() Obtains the GPS location accuracy. |
Returns
Type | Description |
|---|---|
float | GPS location accuracy. |
Method |
|---|
public int getAlternateRouteId() Obtains the ID of an alternative route. |
Returns
Type | Description |
|---|---|
int | ID of an alternative route. |
Method |
|---|
public double getAltitude() Obtains the altitude. |
Returns
Type | Description |
|---|---|
double | Altitude. |
Method |
|---|
public float getBearing() Obtains the location bearing. |
Returns
Type | Description |
|---|---|
float | Location bearing. |
Method |
|---|
public int getBranchRouteId1() Obtains the branch route ID. |
Returns
Type | Description |
|---|---|
int | Branch route ID. |
Method |
|---|
public int getBranchRouteId2() Obtains the branch route ID. |
Returns
Type | Description |
|---|---|
int | Branch route ID. |
Method |
|---|
public NaviLatLng getCoord() Obtains the longitude-latitude coordinates of the current location. |
Returns
Type | Description |
|---|---|
Longitude-latitude coordinates of the current location. |
Method |
|---|
public int getDrivenDistance() Obtains the driven distance on the current road. |
Returns
Type | Description |
|---|---|
int | Driven distance on the current road, in meters. |
Method |
|---|
public boolean getIsInertial() Checks whether the matching is inertial. |
Returns
Type | Description |
|---|---|
boolean | Whether the matching is inertial. |
Method |
|---|
public int getLinkIdx() Obtains the index of the current link. |
Returns
Type | Description |
|---|---|
int | Index of the current link. |
Method |
|---|
public int getMatchLocation() Obtains the matched location. |
Returns
Type | Description |
|---|---|
int | Matched location. |
Method |
|---|
public int getPassedShpIdx() Obtains the index of the pass-through shape point. |
Returns
Type | Description |
|---|---|
int | Index of the pass-through shape point. |
Method |
|---|
public int getPassedViaIdx() Obtains the ID of the pass-through waypoint. |
Returns
Type | Description |
|---|---|
int | ID of the pass-through waypoint. |
Method |
|---|
public NaviLatLng getPosBranch() Obtains the coordinates of the currently matched branch route. |
Returns
Type | Description |
|---|---|
Coordinates of the currently matched branch route. |
Method |
|---|
public NaviLatLng getPosMatch() Obtains the coordinates of the currently matched road. |
Returns
Type | Description |
|---|---|
Coordinates of the currently matched road. |
Method |
|---|
public NaviLatLng getPosOrig() Obtains the original coordinates of the user. |
Returns
Type | Description |
|---|---|
Original coordinates of the user. |
Method |
|---|
public float getRelativeshapeIndex() Obtains the relative shape point position. |
Returns
Type | Description |
|---|---|
float | Relative shape point position. |
Method |
|---|
public float getRoadBearing() Obtains the road bearing. |
Returns
Type | Description |
|---|---|
float | Road bearing. |
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. |