ST_Distance_Spheroid( ST_Geometry , VARCHAR(128)) method

Calculates the linear distance between geometries on the surface of the Earth.

Syntax

geometry-expression.ST_Distance_Spheroid( ST_Geometry geo2, VARCHAR(128) unit_name)

Parameters

Returns

DOUBLE Returns the linear distance between geometries on the surface of the Earth calculated in the specified linear units.

Standards

SQL/MM (ISO/IEC 13249-3: 2006) Vendor extension