For the complete documentation index, see llms.txt. This page is also available as Markdown.

geohash

Geohash is a public domain spatial index.

GEOHASH_BOUNDARY

GEOHASH_BOUNDARY(index)

Description

Returns a geography representing the geohash cell. It will return null on error (invalid input).

Input parameters

  • index: STRING The Geohash cell index. The maximum length supported is 17.

Return type

GEOGRAPHY

Example

SELECT `carto-un`.carto.GEOHASH_BOUNDARY('ezrqcjzgdr3');
-- POLYGON((-1.00000128149986 41.9999988377094, -0.999999940395355 41.9999988377094, ...
SELECT `carto-un-eu`.carto.GEOHASH_BOUNDARY('ezrqcjzgdr3');
-- POLYGON((-1.00000128149986 41.9999988377094, -0.999999940395355 41.9999988377094, ...
SELECT carto.GEOHASH_BOUNDARY('ezrqcjzgdr3');
-- POLYGON((-1.00000128149986 41.9999988377094, -0.999999940395355 41.9999988377094, ...

EU flagThis project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 960401.

Last updated

Was this helpful?