In this example, the geohash() function is used to
calculate the geohash values for London. Note that the values of
latitude and longitude coordinates must be expressed in decimal degrees.
Calculates the geohash value of
a set of coordinates extracted from the fields
lat=londonLat and
lon=londonLon, and returns the
result in a field named
_geohash.
Event Result set.
Summary and Results
The query is used to calculate the geohash value for London
(lat,
lon). A geohash is used for indexing
locations on maps and in databases.
You can use the worldMap() function to plot
existing geo-coordinates (latitude/longitude) on the World Map by adding
this to the query: