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
Constructors Constructor and Description GeoPoint(double latitude, double longitude)
Constructs aGeoPoint
from a given latitude and longitude.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description double
getLatitude()
double
getLongitude()
java.lang.String
toString()
-
-
-
Constructor Detail
-
GeoPoint
public GeoPoint(double latitude, double longitude)
Constructs aGeoPoint
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
-
-
Method Detail
-
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 classjava.lang.Object
-
-