How to convert latitude, longitude to geohash

While using Coordinate map visualization, Kibana asks for geo_hash field type.
Input data is filtered to get latitude and longitude as separate values as well as in as array.
The error - The index pattern access_log* does not contain any of the following compatible field types: geo_point.

geo_hash is an aggregation that works only on certain field types. You need to change your.schema for those fields, for example to the geo_point type:

https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-point.html

Here are some links to how to change the mapping:

https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html#update-mapping

1 Like

Hi Wyile,
Done with that, I forgot to implement mapping on the coordinates to geo_point.
Now the data type is converted to geo_point, but the map is not displaying any values. Its just blank.

It sounds like you might not have reindexed the data

No, I have reindexed the data. It displays count of geohash_grid to be null (-)

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.