public static class Device.Location
extends java.lang.Object
Device.Location describes the location of a device.| Constructor and Description |
|---|
Location(float latitude,
float longitude,
float altitude,
float uncertainty)
Builds a new
Device.Location. |
| Modifier and Type | Method and Description |
|---|---|
float |
getAltitude()
Gets the altitude in meters.
|
float |
getLatitude()
Gets the latitude in decimal degrees.
|
float |
getLongitude()
Gets the longitude in decimal degrees.
|
float |
getUncertainty()
Gets the uncertainty in meters.
|
public Location(float latitude,
float longitude,
float altitude,
float uncertainty)
Device.Location. Any of the parameters should be
Float.NaN if they are unknown.latitude - the device's latitude in degreeslongitude - the device's longitude in degreesaltitude - the device's altitude in metersuncertainty - the device's uncertainty in meterspublic float getLatitude()
Float.NaN is returned.public float getLongitude()
Float.NaN is returned.public float getAltitude()
Float.NaN is returned.public float getUncertainty()
Float.NaN is returned.