Calculates a geohash value given two fields representing latitude and longitude.

Function Traits: FieldComputationFunction, Transformation

asstringoptional_geohash The name of the field that is produced by the function. The field to use for latitude.
lonstringoptionalip.lon The field to use for longitude.
precisionnumberoptional12 The precision to use in the calculation. Usually 12 is enough.

geohash() Examples

Calculate the geohash value of a set of coordinates.

geohash(lat=myLatField, lon=myLonField)

This example computes the geohash for Greenwich:

| lon:=0.0
| g:=geohash(lat=lat, lon=lon)

The result is gcpuzgrbxvrc.