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

# ST_INTERSECTS

> Reference material for ST_INTERSECTS function

The `ST_INTERSECTS` function determines whether two input `GEOGRAPHY` objects intersect each other.

If either input is empty, `ST_INTERSECTS` will return `FALSE`.

Before performing the intersection check, the two inputs are aligned through a snapping process, ensuring precise calculation. For more details on snapping, refer to the [snapping documentation](https://docs.firebolt.io/reference-sql/data-types/geography.md#snapping).

## Syntax

```sql theme={"theme":{"light":"css-variables","dark":"css-variables"}}
ST_INTERSECTS(<geo1>, <geo2>)
```

## Parameters

| Parameter | Description | Supported input types |
| :- | :- | :- |
| `<geo1>` | The first `GEOGRAPHY` object to check for intersection with the second object. | `GEOGRAPHY` |
| `<geo2>` | The second `GEOGRAPHY` object to check for intersection with the first object. | `GEOGRAPHY` |

## Return Type

`ST_INTERSECTS` returns a value of type `BOOLEAN`.

## Example

The following code example constructs two LineStrings near Times Square in New York City from their WKT representations as `GEOGRAPHY` objects and determines if the LineStrings intersect:

```
SELECT ST_INTERSECTS(ST_GEOGFROMTEXT('LINESTRING(-73.98507474330196 40.75858394491826, -73.98601039902333 40.7573327842733)'), ST_GEOGFROMTEXT('LINESTRING(-73.98625022413634 40.758256445020976, -73.98473358363454 40.757637261118134)')) AS result;
```

| result boolean |
| :- |
| True |

Rows: 1Execution time: 5.62ms


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