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
Name Description
latitude double

the latitude to check

Returns
Type Description
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
Name Description
longitude double

the longitude to check

Returns
Type Description
double

the checked longitude

checkValid(DocumentPb.FieldValue.Geo geoPb)

public static DocumentPb.FieldValue.Geo checkValid(DocumentPb.FieldValue.Geo geoPb)
Parameter
Name Description
geoPb com.google.apphosting.api.search.DocumentPb.FieldValue.Geo
Returns
Type Description
com.google.apphosting.api.search.DocumentPb.FieldValue.Geo

Constructors

GeoPointChecker()

public GeoPointChecker()