> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# ST_Point

> Returns the corresponding Point with the given X-coordinate and Y-coordinate.

Creates a spherical point from longitude and latitude in degrees.

## Syntax

```sql theme={null}
VARCHAR ST_Point(DOUBLE x, DOUBLE y)
```

## Return value

Returns the legacy encoded shape as `VARCHAR`. Use [ST\_AsText](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_astext.md) to display it as WKT.

## Examples

```Plain Text theme={null}
MySQL > SELECT ST_AsText(ST_Point(24.7, 56.7));
+---------------------------------+
| st_astext(st_point(24.7, 56.7)) |
+---------------------------------+
| POINT (24.7 56.7)               |
+---------------------------------+
```

## keyword

ST\_POINT,ST,POINT

## Related data types

[VARCHAR](/documents/4.2/sql-reference/data-types/string-type/VARCHAR.md), [DOUBLE](/documents/4.2/sql-reference/data-types/numeric/DOUBLE.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.