<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [lite](./firestore_lite.md) &gt; [GeoPoint](./firestore_lite.geopoint.md)

## GeoPoint class

An immutable object representing a geographic location in Firestore. The location is represented as latitude/longitude pair.

Latitude values are in the range of \[-90, 90\]. Longitude values are in the range of \[-180, 180\].

<b>Signature:</b>

```typescript
export declare class GeoPoint 
```

## Constructors

|  Constructor | Modifiers | Description |
|  --- | --- | --- |
|  [(constructor)(latitude, longitude)](./firestore_lite.geopoint._constructor_.md) |  | Creates a new immutable <code>GeoPoint</code> object with the provided latitude and longitude values. |

## Properties

|  Property | Modifiers | Type | Description |
|  --- | --- | --- | --- |
|  [latitude](./firestore_lite.geopoint.latitude.md) |  | number | The latitude of this <code>GeoPoint</code> instance. |
|  [longitude](./firestore_lite.geopoint.longitude.md) |  | number | The longitude of this <code>GeoPoint</code> instance. |

## Methods

|  Method | Modifiers | Description |
|  --- | --- | --- |
|  [isEqual(other)](./firestore_lite.geopoint.isequal.md) |  | Returns true if this <code>GeoPoint</code> is equal to the provided one. |
|  [toJSON()](./firestore_lite.geopoint.tojson.md) |  | Returns a JSON-serializable representation of this GeoPoint. |

