@Immutable public class EarthLocation extends Object
| Modifier and Type | Method and Description |
|---|---|
static EarthLocation |
create(double lat,
double lon,
double alt)
Create an EarthLocation.
|
static EarthLocation |
create(double lat,
double lon,
double alt,
String altUnits)
Create an EarthLocation.
|
boolean |
equals(Object o) |
double |
getAltitude()
Returns the altitude in some unit.
|
String |
getAltitudeUnits()
Returns the units of the altitude.
|
double |
getLatitude()
The latitude in decimal degrees north.
|
LatLonPoint |
getLatLon()
Get the lat/lon as a LatLonPoint.
|
double |
getLongitude()
The longitude in decimal degrees east.
|
int |
hashCode() |
boolean |
isMissing()
Are either lat or lon missing?
|
public static EarthLocation create(double lat, double lon, double alt)
lat - latitude in decimal degrees north.lon - longitude in decimal degrees north.alt - altitude in meters above the reference surface.public static EarthLocation create(double lat, double lon, double alt, String altUnits)
lat - latitude in decimal degrees north.lon - longitude in decimal degrees north.alt - altitude in meters above the reference surface.altUnits - units of the altitude.public double getLatitude()
public double getLongitude()
public double getAltitude()
Double.NaN indicates "no altitude".@Nullable public String getAltitudeUnits()
public LatLonPoint getLatLon()
public boolean isMissing()