Product Solutions Support
Try MemSQL

GEOGRAPHY_LATITUDE

This function extracts the latitude portion of a GeographyPoint.

Syntax

GEOGRAPHY_LATITUDE ( point )

Arguments

Return Type

A float of the latitude value. If the object is invalid or not a point (say a path or polygon), returns NULL.

Examples

memsql> select geography_latitude("POINT(-73.94990499 40.69150746)") as lat;
+------------------+
| lat              |
+------------------+
| 40.6915074632948 |
+------------------+
Was this article useful?