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

# GEOGRAPHY

> Native spatial type for spherical longitude and latitude.

`GEOGRAPHY` is the native SQL type for spatial values on the Earth’s sphere. Coordinates use `OGC:CRS84` with SRID 4326 and have longitude (X) followed by latitude (Y), in degrees. The supported ranges are −180 to 180 for longitude and −90 to 90 for latitude. Edges follow spherical semantics; supported distance and area functions return meters and square meters.

## Distance and area

See [ST\_Distance](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_distance.md) for distance and [ST\_Area](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_area.md) for area. Distance is in meters and area is in square meters.

## Construct a value

Use [ST\_GeogFromText](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_geogfromtext.md) for Well-Known Text (WKT) or [ST\_GeogFromWKB](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_geogfromwkb.md) for Well-Known Binary (WKB). If you supply an SRID, it must be 4326. These constructors accept the seven XY OGC families, including typed `EMPTY` values. Function support varies by family.

## Query and serialize

```sql theme={null}
SELECT ST_AsText(ST_GeogFromText('POINT (24.7 56.7)')) AS point_wkt;
-- POINT (24.7 56.7)
```

Use [ST\_AsText](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_astext.md) for readable WKT or [ST\_AsBinary](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_asbinary.md) for standard WKB. A scalar `GEOGRAPHY` can also be returned directly to a client as WKB. For compatible Iceberg fields, see [Iceberg type mapping](/documents/4.2/data_source/catalog/iceberg/iceberg.md). For planar coordinates and computations, see [GEOMETRY](/documents/4.2/sql-reference/data-types/spatial-types/GEOMETRY.md). Browse the [spatial functions](/documents/4.2/sql-reference/sql-functions/spatial-functions/native-spatial-functions.md) by operation.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.