# Some questions about geohash

**URL:** <https://discuss.elastic.co/t/some-questions-about-geohash/14851>\
**Category:** Elasticsearch\
**Created:** [December 13, 2013, 8:50am UTC](https://discuss.elastic.co/t/some-questions-about-geohash/14851 "2013-12-13T08:50:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Damir\_Gaynetdinov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/damir_gaynetdinov/32/1915_2.png) [@Damir\_Gaynetdinov](https://discuss.elastic.co/u/Damir_Gaynetdinov)\
**Post date:** [December 13, 2013, 8:50am UTC](https://discuss.elastic.co/t/some-questions-about-geohash/14851/1 "2013-12-13T08:50:53Z")

</div>

Hello.

1. Does geohash\_cell filter support precision as distance? For example:

"filter": {  
"geohash\_cell": {  
"precision": "810m",  
"mapbounds\_center": {  
"lat": 41.890411,  
"lon": 12.493473  
},  
"neighbors": true  
}  
}

Example  
at [http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-geohash-cell-filter.html#query-dsl-geohash-cell-filter](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-geohash-cell-filter.html#query-dsl-geohash-cell-filter)  
has precision as integer(prefix size).

1. Does geo\_point type with geohash enabled support different precision for  
different records? For example one record would have

location{precision: "850m", "lat":41.8901541870786,"lon":12.4923992156982}  
and another record in the same index would have

location{precision: "450m", "lat":51.89014541870786,"lon":30.442359215653}

Thank you so much!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/8499d7d7-0f57-460e-9c19-4ad029600c97%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8499d7d7-0f57-460e-9c19-4ad029600c97%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [December 13, 2013, 3:25pm UTC](https://discuss.elastic.co/t/some-questions-about-geohash/14851/2 "2013-12-13T15:25:02Z")

</div>

Hi

1. Yes, it does.
2. The precision is needed in geo shapes only, not in geo points - geo  
points only have a geohash\_precisions.

--Alex

On Fri, Dec 13, 2013 at 9:50 AM, Damir Gaynetdinov \<  
[damir.gaynetdinov@gmail.com](mailto:damir.gaynetdinov@gmail.com)\> wrote:

> Hello.
> 
> 1. Does geohash\_cell filter support precision as distance? For example:
> 
> "filter": {  
> "geohash\_cell": {  
> "precision": "810m",  
> "mapbounds\_center": {  
> "lat": 41.890411,  
> "lon": 12.493473  
> },  
> "neighbors": true  
> }  
> }
> 
> Example at  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-geohash-cell-filter.html#query-dsl-geohash-cell-filterhas) precision as integer(prefix size).
> 
> 1. Does geo\_point type with geohash enabled support different precision  
> for different records? For example one record would have
> 
> location{precision: "850m", "lat":41.8901541870786,"lon":12.4923992156982}  
> and another record in the same index would have
> 
> location{precision: "450m", "lat":51.89014541870786,"lon":30.442359215653}
> 
> Thank you so much!
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/8499d7d7-0f57-460e-9c19-4ad029600c97%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8499d7d7-0f57-460e-9c19-4ad029600c97%40googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGCwEM801RR0v47XCuyuO%3DgA8d%3DtnJZgMObrGOKLdP05KVHjJw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM801RR0v47XCuyuO%3DgA8d%3DtnJZgMObrGOKLdP05KVHjJw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:01am UTC](https://discuss.elastic.co/t/some-questions-about-geohash/14851/3 "2017-07-06T02:01:20Z")

</div>


