---
title: geo.ST_Length() function
description: geo.ST_Length() returns the spherical length or distance of the specified GIS geometry.
url: https://docs.influxdata.com/flux/v0/stdlib/experimental/geo/st_length/
estimated_tokens: 512
product: Flux
version: v0
---

# geo.ST\_Length() function

-   Flux 0.78.0+
-   View InfluxDB support

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

`geo.ST_Length()` returns the [spherical length or distance](https://mathworld.wolfram.com/SphericalDistance.html) of the specified GIS geometry.

##### Function type signature

```js
(geometry: A, ?units: {distance: string}) => float where A: Record
```

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

## Parameters

### geometry

(Required) GIS geometry to test. Can be either point or linestring geometry. Point geometry will always return `0.0`.

### units

Record that defines the unit of measurement for distance.

#### Related

-   [Work with geo-temporal data](/influxdb/v2/query-data/flux/geo/)

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