public class GeoPoint
extends java.lang.Object
| Constructor | Description |
|---|---|
GeoPoint(double latitude,
double longitude) |
Creates a new geographic point using the given latitude and longitude.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object other) |
|
double |
getLatitude() |
Return the latitude of this geographic point in degrees.
|
double |
getLongitude() |
Return the longitude of this geographic point in degrees.
|
int |
hashCode() |
|
java.lang.String |
toString() |
public GeoPoint(double latitude,
double longitude)
java.lang.IllegalArgumentException - if latitude is < -90.0 or latitude is > +90.0java.lang.IllegalArgumentException - if longitude is < -180.0 or longitude is > +180.0public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic double getLatitude()
public double getLongitude()
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object