| Modifier and Type | Method and Description |
|---|---|
int |
getAltitude()
Obtains the geographical altitude of this instance relative to sea level.
|
double |
getLatitude()
Obtains the geographical latitude of this instance.
|
double |
getLongitude()
Obtains the geographical longitude of this instance.
|
static GeoLocation |
of(double latitude,
double longitude)
Creates an instance with given geographical coordinates on sea level.
|
static GeoLocation |
of(double latitude,
double longitude,
int altitude)
Creates an instance with given geographical coordinates.
|
static GeoLocation of(double latitude, double longitude)
Creates an instance with given geographical coordinates on sea level.
latitude - geographical latitude in decimal degrees (-90.0 <= x <= +90.0)longitude - geographical longitude in decimal degrees (-180.0 <= x < 180.0)IllegalArgumentException - if the coordinates are out of rangestatic GeoLocation of(double latitude, double longitude, int altitude)
Creates an instance with given geographical coordinates.
latitude - geographical latitude in decimal degrees (-90.0 <= x <= +90.0)longitude - geographical longitude in decimal degrees (-180.0 <= x < 180.0)altitude - geographical altitude relative to sea level in meters (0 <= x < 11,0000)IllegalArgumentException - if the coordinates are out of rangedouble getLatitude()
Obtains the geographical latitude of this instance.
-90.0 <= x <= +90.0)double getLongitude()
Obtains the geographical longitude of this instance.
-180.0 <= x < 180.0)int getAltitude()
Obtains the geographical altitude of this instance relative to sea level.
0 <= x < 11,0000)Copyright © 2014–2021. All rights reserved.