Package com.skyhookwireless.wps
Class Location
- java.lang.Object
-
- com.skyhookwireless.wps.Location
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
IPLocation
,WPSLocation
public class Location extends java.lang.Object implements java.io.Serializable
Geographic location- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getAltitude()
double
getLatitude()
double
getLongitude()
long
getTime()
boolean
hasAltitude()
boolean
hasLatitude()
boolean
hasLongitude()
boolean
hasTime()
void
setAltitude(double altitude)
void
setLatitude(double latitude)
void
setLongitude(double longitude)
void
setTime(long time)
java.lang.String
toString()
-
-
-
Method Detail
-
getLatitude
public double getLatitude()
- Returns:
- the calculated physical geographic location latitude
-
getLongitude
public double getLongitude()
- Returns:
- the calculated physical geographic location longitude
-
getTime
public long getTime()
- Returns:
- location timestamp
-
setTime
public void setTime(long time)
-
hasTime
public boolean hasTime()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setLatitude
public void setLatitude(double latitude)
-
hasLatitude
public boolean hasLatitude()
-
setLongitude
public void setLongitude(double longitude)
-
hasLongitude
public boolean hasLongitude()
-
getAltitude
public double getAltitude()
- Returns:
- calculated altitude above the WGS-84 reference ellipsoid in meters
- Since:
- 3.2
-
hasAltitude
public boolean hasAltitude()
-
setAltitude
public void setAltitude(double altitude)
-
-