|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.epseelon.mobimap.util.GeoPosition
public class GeoPosition
An immutable coordinate in the real (geographic) world, composed of a latitude and a longitude.
| Constructor Summary | |
|---|---|
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(double latDegrees,
double latMinutes,
double latSeconds,
double lonDegrees,
double lonMinutes,
double lonSeconds)
Creates a new instance of GeoPosition from the specified latitude and longitude. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Returns true the specified GeoPosition and this GeoPosition represent the exact same latitude and longitude coordinates. |
double |
getLatitude()
Get the latitude as decimal degrees |
double |
getLongitude()
Get the longitude as decimal degrees |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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 two
public GeoPosition(double latDegrees,
double latMinutes,
double latSeconds,
double lonDegrees,
double lonMinutes,
double 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 longitude| Method Detail |
|---|
public double getLatitude()
public double getLongitude()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - a GeoPosition to compare this GeoPosition to
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||