ST_DISTANCE
Calculates the shortest distance between two geometries. Returns the minimum Euclidean distance between any two points in the geometries.
Syntax
ST_DISTANCE(g1,g2)Description
Example
SELECT ST_Distance(POINT(1,2),POINT(2,2));
+------------------------------------+
| ST_Distance(POINT(1,2),POINT(2,2)) |
+------------------------------------+
| 1 |
+------------------------------------+Last updated
Was this helpful?

