# Suggestion needed for geo\_shape mapping

**URL:** <https://discuss.elastic.co/t/suggestion-needed-for-geo-shape-mapping/103246>\
**Category:** Elasticsearch\
**Created:** [October 9, 2017, 4:03pm UTC](https://discuss.elastic.co/t/suggestion-needed-for-geo-shape-mapping/103246 "2017-10-09T16:03:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pokaleshrey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pokaleshrey/32/48680_2.png) [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Post date:** [October 9, 2017, 4:03pm UTC](https://discuss.elastic.co/t/suggestion-needed-for-geo-shape-mapping/103246/1 "2017-10-09T16:03:39Z")

</div>

Hi,  
I am trying to store road geometry as linestring (geo\_shape). I would index millions of road geometries in the geometry field of my documents. Each road will have its separate document.

While going through reference of 5.6, i found few parameters for geo\_shape type.  
I did also go through some discussions here. But was left confused between below parameters, need some help here to achieve faster indexing and querying.

1. tree = geohash or quadtree ? (they say quadtree is faster)
2. precision = what is default ? should i really set it for small shapes like roads ?
3. distance\_error\_pct = I am thinking of staying away from this stuff. Any comments ?

---

<div class="post-metadata">

**Author:** ![pokaleshrey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pokaleshrey/32/48680_2.png) [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Post date:** [October 11, 2017, 2:52pm UTC](https://discuss.elastic.co/t/suggestion-needed-for-geo-shape-mapping/103246/2 "2017-10-11T14:52:03Z")

</div>

Any suggestions ?

---

<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:** [November 8, 2017, 2:52pm UTC](https://discuss.elastic.co/t/suggestion-needed-for-geo-shape-mapping/103246/3 "2017-11-08T14:52:06Z")

</div>

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