public class Location extends Object
Constructor and Description |
---|
Location() |
Modifier and Type | Method and Description |
---|---|
float |
getAccuracy()
Returns the horizontal accuracy of the location in meters
|
double |
getAltitude()
Returns the altitude of this Location
|
float |
getDirection()
Returns the direction of this Location in degress 0-360
|
double |
getLatitude()
Returns the latitude of this Location
|
double |
getLongitude()
Returns the longitude of this Location
|
double |
getLongtitude()
Deprecated.
use getLongitude
|
int |
getStatus()
The status of the location one of: LocationManager.AVAILABLE,
LocationManager.OUT_OF_SERVICE or LocationManager.TEMPORARILY_UNAVAILABLE:
|
long |
getTimeStamp()
Returns the timestamp of this Location
|
float |
getVelocity()
Returns the velocity of this Location in meters per second (m/s)
|
void |
setAccuracy(float accuracy) |
void |
setAltitude(double altitude)
Sets the altitude of this Location
|
void |
setDirection(float direction)
Sets the direction of this Location
|
void |
setLatitude(double latitude)
Sets the latitude of this Location
|
void |
setLongitude(double longtitude)
Sets the longitude of this Location
|
void |
setLongtitude(double longtitude)
Deprecated.
use setLongitude
|
void |
setStatus(int status)
The status of the location one of: LocationProvider.AVAILABLE,
LocationProvider.OUT_OF_SERVICE or LocationProvider.TEMPORARILY_UNAVAILABLE:
|
void |
setTimeStamp(long timeStamp)
Sets the timeStamp of this Location
|
void |
setVelocity(float velocity)
Sets the velocity of this Location
|
String |
toString()
Returns a string representation of the object.
|
public float getAccuracy()
public double getAltitude()
public float getDirection()
public double getLatitude()
public double getLongitude()
public double getLongtitude()
public int getStatus()
public long getTimeStamp()
public float getVelocity()
public void setAccuracy(float accuracy)
public void setAltitude(double altitude)
altitude
- public void setDirection(float direction)
direction
- public void setLatitude(double latitude)
latitude
- public void setLongitude(double longtitude)
longitude
- public void setLongtitude(double longtitude)
longitude
- public void setStatus(int status)
public void setTimeStamp(long timeStamp)
timeStamp
- public void setVelocity(float velocity)
velocity
- public String toString()
Object