Class GeoPointChecker (2.0.0)

public class GeoPointChecker

Inheritance

java.lang.Object > GeoPointChecker

Static Methods

checkLatitude(double latitude)

public static double checkLatitude(double latitude)

Checks whether a com.google.appengine.api.search.GeoPoint latitude is valid. The value must be between -90.0 and 90.0 degrees.

Parameter
NameDescription
latitudedouble

the latitude to check

Returns
TypeDescription
double

the checked latitude

checkLongitude(double longitude)

public static double checkLongitude(double longitude)

Checks whether a com.google.appengine.api.search.GeoPoint longitude is valid. The value must be between -180.0 and 180.0 degrees.

Parameter
NameDescription
longitudedouble

the longitude to check

Returns
TypeDescription
double

the checked longitude

checkValid(DocumentPb.FieldValue.Geo geoPb)

public static DocumentPb.FieldValue.Geo checkValid(DocumentPb.FieldValue.Geo geoPb)
Parameter
NameDescription
geoPbcom.google.apphosting.api.search.DocumentPb.FieldValue.Geo
Returns
TypeDescription
com.google.apphosting.api.search.DocumentPb.FieldValue.Geo

Constructors

GeoPointChecker()

public GeoPointChecker()