# Support for multipolygon query

**URL:** <https://discuss.elastic.co/t/support-for-multipolygon-query/222316>\
**Category:** Elasticsearch\
**Created:** [March 5, 2020, 2:31pm UTC](https://discuss.elastic.co/t/support-for-multipolygon-query/222316 "2020-03-05T14:31:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tamil5ag](https://avatars.discourse-cdn.com/v4/letter/t/f1d935/32.png) [@tamil5ag](https://discuss.elastic.co/u/tamil5ag)\
**Post date:** [March 5, 2020, 2:31pm UTC](https://discuss.elastic.co/t/support-for-multipolygon-query/222316/1 "2020-03-05T14:31:50Z")

</div>

Hi,

I need to get the geo-coordinates under 2 different polygon(An array of separate polygons)  
whether need to use geo-polygon query or multipolygon query? Can you help with the example query which ever is supported

E.g :  
I tried to get the co-ordinates under two different polygon using below query. I got co-ordinates under this 2 polygon(1 to 4 one polygon and 5-8 is other polygon). Whether this approach is correct? If not which query i can use or how i get the co-ordinates under array of separate polygon?

"geo\_polygon" : {  
"geocoordinates" : {  
"points" :  
[  
{  
"lon": -72.2797966,  
"lat": 42.9277896  
},  
{  
"lon": -72.2785842,  
"lat": 42.9263441  
},  
{  
"lon": -72.281599,  
"lat": 42.9259749  
},  
{  
"lon": -72.2797966,  
"lat": 42.9277896  
},  
{  
"lon": 122.6220721,  
"lat": -20.988796  
},  
{  
"lon": 143.3642596,  
"lat": -26.8894138  
},  
{  
"lon": 124.0283221,  
"lat": -32.8672851  
},  
{  
"lon": 122.6220721,  
"lat": -20.988796  
}   
]  
}  
}

---

<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:** [April 2, 2020, 2:31pm UTC](https://discuss.elastic.co/t/support-for-multipolygon-query/222316/2 "2020-04-02T14:31:54Z")

</div>

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