Skip to content
πŸŽ‰ Apache Sedona 1.9.1 is out now! πŸ—ΊοΈ Geography SQL functions, Box2D & Box3D types, raster Python UDFs & more. Read the release notes β†’

ST_Azimuth

Introduction: Returns Azimuth for two given points in radians. Returns null if the two points are identical.

ST_Azimuth

Format: ST_Azimuth(pointA: Point, pointB: Point)

Return type: Double

Since: v1.0.0

SQL Example

SELECT ST_Azimuth(ST_POINT(0.0, 25.0), ST_POINT(0.0, 0.0))

Output:

3.141592653589793