目录

LocationBase

Class Info

public class LocationBase extends NaviLatLng

Location base class, including only the longitude and latitude, accuracy, altitude, bearing, speed, and time. The class will not be expanded.

Public Constructor Summary

Constructor Name

LocationBase(double lat, double lng)

Constructs a LocationBase object with the specified longitude and latitude.

LocationBase(LocationBase crd)

Constructs a LocationBase object with the specified LocationBase object.

Public Method Summary

Qualifier and Type

Method Name and Description

float

getAccuracy()

Obtains the accuracy.

double

getAltitude()

Obtains the altitude.

float

getBearing()

Obtains the bearing.

float

getSpeed()

Obtains the speed.

long

getTime()

Obtains the time.

Public Constructors

[h2]LocationBase(double lat, double lng)

Constructor

public LocationBase(double lat, double lng)

Constructs a LocationBase object with the specified longitude and latitude.

Parameters

Name

Description

lat

Latitude.

lng

Longitude.

[h2]LocationBase(LocationBase crd)

Constructor

public LocationBase(LocationBase crd)

Constructs a LocationBase object with the specified LocationBase object.

Parameters

Name

Description

crd

Specified LocationBase object.

Public Methods

[h2]getAccuracy

Method

public float getAccuracy()

Obtains the accuracy.

Returns

Type

Description

float

Accuracy.

[h2]getAltitude

Method

public double getAltitude()

Obtains the altitude.

Returns

Type

Description

double

Altitude.

[h2]getBearing

Method

public float getBearing()

Obtains the bearing.

Returns

Type

Description

float

Bearing.

[h2]getSpeed

Method

public float getSpeed()

Obtains the speed.

Returns

Type

Description

float

Speed, in km/h.

[h2]getTime

Method

public long getTime()

Obtains the time.

Returns

Type

Description

long

Time.