Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt

Use this file to discover all available pages before exploring further.

Return the Euclidean distance between A and B ST_Distance

Signatures

ST_Distance (A: Geometry, B: Geometry)

Parameters

A
Geometry
required
The input geometry.
B
Geometry
required
The second geometry.

Return type

A numeric value.

Example

SELECT ST_Distance(ST_GeomFromText('POINT(72 42)'), ST_GeomFromText('LINESTRING(-72 -42, 82 92)'))
31.155515639003543