Documentation

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.

Parameters

token

(Required) S2 cell ID token.

Examples

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!


The future of Flux

Flux is going into maintenance mode. You can continue using it as you currently are without any changes to your code.

Read more