---
title: geo.s2CellLatLon() function
description: geo.s2CellLatLon() returns the latitude and longitude of the center of an S2 cell.
url: https://docs.influxdata.com/flux/v0/stdlib/experimental/geo/s2celllatlon/
estimated_tokens: 210
product: Flux
version: v0
publisher: InfluxData
canonical: https://docs.influxdata.com/flux/v0/stdlib/experimental/geo/s2celllatlon/
date: '2024-04-08T16:01:02-06:00'
lastmod: '2024-04-08T16:01:02-06:00'
---

* Flux 0.78.0+

InfluxDB support

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

`geo.s2CellLatLon()` returns the latitude and longitude of the center of an S2 cell.

##### Function type signature

```js
(token: string) => {lon: float, lat: float}
```

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

## Parameters

### token

(Required)
S2 cell ID token.

## Examples

### Return the center coordinates of an S2 cell

```
import "experimental/geo"

geo.s2CellLatLon(token: "89c284")// Returns {lat: 40.812535546624574, lon: -73.55941282728273}

```

#### Related

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

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