Skip to main content

Geospatial functions

NQL includes Sedona-based geospatial functions for location data.

ST_SafePoint

Creates a point geometry from longitude and latitude.

ST_Circle

Creates a circular geometry around a point.

ST_DistanceSphere

Calculates the distance between two points on a sphere (in meters).

ST_GeoHash

Converts a point to a geohash string.

ST_H3CellIDs

Returns H3 hexagon cell IDs covering a geometry.

ST_H3KRing

Returns neighboring H3 cells within k rings.

Numeric Functions

Math and rounding

String Functions

Text manipulation

All Functions

Browse all function categories

Location Data

Working with geographic data