public class GeoPointCheckerProvides checks for com.google.appengine.api.search.GeoPoint.
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 | 
        doublethe 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 | 
        doublethe 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()