geo.getLevel() function

geo.getLevel() is experimental and subject to change at any time.

geo.getLevel() returns the S2 cell level of specified cell ID token.

Function type signature
(token: string) => int
For more information, see Function type signatures.



(Required) S2 cell ID token.


Return the S2 cell level of an S2 cell ID token

import "experimental/geo"

geo.getLevel(token: "166b59")// Returns 10

Was this page helpful?

Thank you for your feedback!

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.