public class GeoPointChecker
extends java.lang.Object
GeoPoint.| Constructor and Description |
|---|
GeoPointChecker() |
| Modifier and Type | Method and Description |
|---|---|
static double |
checkLatitude(double latitude)
Checks whether a
GoePoint latitude is valid. |
static double |
checkLongitude(double longitude)
Checks whether a
GoePoint longitude is valid. |
static DocumentPb.FieldValue.Geo |
checkValid(DocumentPb.FieldValue.Geo geoPb) |
public static double checkLatitude(double latitude)
GoePoint latitude is valid. The value must be between
-90.0 and 90.0 degrees.latitude - the latitude to checkjava.lang.IllegalArgumentException - if the latitude is out of rangepublic static double checkLongitude(double longitude)
GoePoint longitude is valid. The value must be between
-180.0 and 180.0 degrees.longitude - the longitude to checkjava.lang.IllegalArgumentException - if the longitude is out of rangepublic static DocumentPb.FieldValue.Geo checkValid(DocumentPb.FieldValue.Geo geoPb)