docs-v2/content/influxdb/v2.0/reference/flux/stdlib/experimental/geo/s2celllatlon.md

671 B

title description menu weight influxdb/v2.0/tags related
geo.s2CellLatLon() function The `geo.s2CellLatLon()` function returns the latitude and longitude of the center of an S2 cell.
influxdb_2_0_ref
name parent
geo.s2CellLatLon Geo
401
functions
geo
/influxdb/v2.0/query-data/flux/geo/

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

Function type: Transformation

import "experimental/geo"

geo.s2CellLatLon(
  token: "89c284"
)

// Returns {lat: 40.812535546624574, lon: -73.55941282728273}

Parameters

token

S2 cell ID token.

Data type: String