---
title: geo.stContains() function
description: geo.stContains() returns boolean indicating whether the defined region contains a specified GIS geometry.
url: https://docs.influxdata.com/flux/v0/stdlib/experimental/geo/stcontains/
estimated_tokens: 228
product: Flux
version: v0
publisher: InfluxData
canonical: https://docs.influxdata.com/flux/v0/stdlib/experimental/geo/stcontains/
date: '2024-04-08T16:01:02-06:00'
lastmod: '2024-04-08T16:01:02-06:00'
---

* Flux 0.78.0+

InfluxDB support

> [!Important]
> `geo.stContains()` is experimental and [subject to change at any time](/flux/v0/stdlib/experimental/#experimental-packages-are-subject-to-change).

`geo.stContains()` returns boolean indicating whether the defined region contains a specified GIS geometry.

`geo.stContains` is used as a helper function for `geo.ST_Contains()`.

##### Function type signature

```js
(geometry: A, region: B, units: {distance: string}) => bool where A: Record, B: Record
```

For more information, see [Function type signatures](/flux/v0/function-type-signatures/).

## Parameters

### region

(Required)
Region to test. Specify record properties for the shape.

### geometry

(Required)
GIS geometry to test. Can be either point or linestring geometry.

### units

(Required)
Record that defines the unit of measurement for distance.

[geotemporal](/flux/v0/tags/geotemporal/)
