# Class GeoPointChecker (5.0.3)

    public class GeoPointChecker

Provides checks for [com.google.appengine.api.search.GeoPoint](https://docs.cloud.google.com/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.search.GeoPoint).

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> GeoPointChecker

## Inherited Members

[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Static Methods

### checkLatitude(double latitude)

    public static double checkLatitude(double latitude)

Checks whether a [com.google.appengine.api.search.GeoPoint](https://docs.cloud.google.com/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.search.GeoPoint) latitude is valid. The value
must be between -90.0 and 90.0 degrees.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `latitude` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` the latitude to check |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | the checked latitude |

### checkLongitude(double longitude)

    public static double checkLongitude(double longitude)

Checks whether a [com.google.appengine.api.search.GeoPoint](https://docs.cloud.google.com/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.search.GeoPoint) longitude is valid. The value
must be between -180.0 and 180.0 degrees.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `longitude` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` the longitude to check |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | 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()