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. |
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. |
Constructor |
|---|
public LocationBase(double lat, double lng) Constructs a LocationBase object with the specified longitude and latitude. |
Parameters
Name | Description |
|---|---|
lat | Latitude. |
lng | Longitude. |
Constructor |
|---|
public LocationBase(LocationBase crd) Constructs a LocationBase object with the specified LocationBase object. |
Parameters
Name | Description |
|---|---|
crd | Specified LocationBase object. |
Method |
|---|
public float getAccuracy() Obtains the accuracy. |
Returns
Type | Description |
|---|---|
float | Accuracy. |
Method |
|---|
public double getAltitude() Obtains the altitude. |
Returns
Type | Description |
|---|---|
double | Altitude. |
Method |
|---|
public float getBearing() Obtains the bearing. |
Returns
Type | Description |
|---|---|
float | Bearing. |