public class GeoPosition extends Object
Constructor and Description |
---|
GeoPosition(double[] coords)
Creates a new instance of GeoPosition from the specified
latitude and longitude as an array of two doubles, with the
latitude first.
|
GeoPosition(double latitude,
double longitude)
Creates a new instance of GeoPosition from the specified
latitude and longitude.
|
GeoPosition(int latDegrees,
int latMinutes,
int latSeconds,
int lonDegrees,
int lonMinutes,
int lonSeconds)
Creates a new instance of GeoPosition from the specified
latitude and longitude.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
double |
getLatitude()
Get the latitude as decimal degrees
|
double |
getLongitude()
Get the longitude as decimal degrees
|
int |
hashCode() |
String |
toString() |
public GeoPosition(double latitude, double longitude)
latitude
- a latitude value in decmial degreeslongitude
- a longitude value in decimal degreespublic GeoPosition(double[] coords)
coords
- latitude and longitude as a double array of length twopublic GeoPosition(int latDegrees, int latMinutes, int latSeconds, int lonDegrees, int lonMinutes, int lonSeconds)
latDegrees
- the degrees part of the current latitudelatMinutes
- the minutes part of the current latitudelatSeconds
- the seconds part of the current latitudelonDegrees
- the degrees part of the current longitudelonMinutes
- the minutes part of the current longitudelonSeconds
- the seconds part of the current longitudeCopyright © 2013. All Rights Reserved.