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.SerializableGeographic location- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetAltitude()doublegetLatitude()doublegetLongitude()longgetTime()booleanhasAltitude()booleanhasLatitude()booleanhasLongitude()booleanhasTime()voidsetAltitude(double altitude)voidsetLatitude(double latitude)voidsetLongitude(double longitude)voidsetTime(long time)java.lang.StringtoString()
-
-
-
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:
toStringin 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)
-
-