> ## Documentation Index
> Fetch the complete documentation index at: https://docs.generalrobotics.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# GeoPoint

> A class to represent a geographic point using latitude, longitude, and altitude

```python theme={null}
from grid_types import GeoPoint
```

A class to represent a geographic point using latitude, longitude, and altitude.

## Fields

<ResponseField name="latitude" type="float">
  Latitude in degrees.
</ResponseField>

<ResponseField name="longitude" type="float">
  Longitude in degrees.
</ResponseField>

<ResponseField name="altitude" type="float">
  Altitude in meters (e.g., above sea level).
</ResponseField>

## Constructor

```python Signature theme={null}
GeoPoint(latitude: float, longitude: float, altitude: float)
```

## Methods

### `from_dict()`

```python Signature theme={null}
from_dict(data: dict) -> GeoPoint
```

Deserialize from dictionary

### `to_dict()`

```python Signature theme={null}
to_dict() -> dict
```

Serialize to dictionary for JSON transfer

## Example

```python theme={null}
pt1 = GeoPoint(latitude=45.0, longitude=-75.0, altitude=100.0)
pt2 = GeoPoint(45.0, -75.0, 100.0)
print(pt1)
print(np.array(pt1))
```


## Related topics

- [sam2](/models/cortex/sam2.md)
- [Sensors](/simulation/isaac/sensors.md)
- [Camera Calibration](/deployment/camera-calibration.md)
- [CLI reference](/cli/reference.md)
- [GRID Cortex Client](/models/cortex.md)
