---
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: 561
product: Flux
version: v0
---

# geo.stContains() function

-   Flux 0.78.0+
-   View InfluxDB support

`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/)
