public class GeoPoint extends Object
| Constructor and Description |
|---|
GeoPoint(double latitude,
double longitude)
Creates a new geographic point using the given latitude and longitude.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(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() |
String |
toString() |
public GeoPoint(double latitude,
double longitude)
IllegalArgumentException - if latitude is < -90.0 or latitude is > +90.0IllegalArgumentException - if longitude is < -180.0 or longitude is > +180.0