--- title: geo.getLevel() function description: > `geo.getLevel()` returns the S2 cell level of specified cell ID token. menu: flux_0_x_ref: name: geo.getLevel parent: experimental/geo identifier: experimental/geo/getLevel weight: 201 flux/v0.x/tags: [geotemporal] --- `geo.getLevel()` returns the S2 cell level of specified cell ID token. ##### Function type signature ```js (token: string) => int ``` {{% caption %}}For more information, see [Function type signatures](/flux/v0.x/function-type-signatures/).{{% /caption %}} ## Parameters ### token ({{< req >}}) S2 cell ID token. ## Examples ### Return the S2 cell level of an S2 cell ID token ```js import "experimental/geo" geo.getLevel(token: "166b59")// Returns 10 ```