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*

  1. import "experimental/geo"
  2. geo.s2CellLatLon(
  3. token: "89c284"
  4. )
  5. // Returns {lat: 40.812535546624574, lon: -73.55941282728273}

Parameters

token

S2 cell ID token.

*Data type: String*

Related articles

functions geo