com.google.appengine.api.search
Class GeoPoint
java.lang.Object
com.google.appengine.api.search.GeoPoint
public class GeoPoint
- extends java.lang.Object
Represents a point on the Earth's surface, in latitude and longitude
coordinates.
|
Constructor Summary |
GeoPoint(double latitude,
double longitude)
Constructs a GeoPoint from a given latitude and longitude. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GeoPoint
public GeoPoint(double latitude,
double longitude)
- Constructs a
GeoPoint from a given latitude and longitude.
- Parameters:
latitude - the angle between the equatorial plane and a line
that passes through the GeoPointlongitude - is the angle east or west from a reference meridian
to another meridian that passes through the GeoPoint
getLatitude
public double getLatitude()
- Returns:
- the angle between the equatorial plan and a line that passes
through the GeoPoint
getLongitude
public double getLongitude()
- Returns:
- the angle east or west from a reference meridian
to another meridian that passes through the GeoPoint
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object