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

ParameterTypeRequiredDefault ValueDescription
asstringoptional[a] _geohash The name of the field that is produced by the function.
latstringoptional[a] ip.lat The field to use for latitude.
lonstringoptional[a] ip.lon The field to use for longitude.
precisionnumberoptional[a] 12 The precision to use in the calculation. Usually 12 is enough.

[a] Optional parameters use their default value unless explicitly set.

Calculate the geohash value of a set of coordinates.

logscale
geohash(lat=myLatField, lon=myLonField)

geohash() Examples

Click + next to an example below to get the full details.

Calculate Geohash Value of a Set of Coordinates

Calculate a geohash value given two fields representing latitude and longitude using the geohash() function