geo.s2CellLatLon() function

The geo.s2CellLatLon() function is experimental and subject to change at any time. By using this function, you accept the risks of experimental functions.

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

Function type: Transformation

import "experimental/geo"

  token: "89c284"

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



S2 cell ID token.

Data type: String

Cloud or OSS?

InfluxDB OSS 2.0 now generally available!

InfluxDB OSS 2.0 is now generally available and ready for production use. See the InfluxDB OSS 2.0 release notes.

For information about upgrading to InfluxDB OSS 2.0, see: