# Geo Shape Queries

**URL:** <https://discuss.elastic.co/t/geo-shape-queries/151738>\
**Category:** Elasticsearch\
**Created:** [October 10, 2018, 3:23am UTC](https://discuss.elastic.co/t/geo-shape-queries/151738 "2018-10-10T03:23:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![han1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/han1/32/20141_2.png) [@han1](https://discuss.elastic.co/u/han1)\
**Post date:** [October 10, 2018, 3:23am UTC](https://discuss.elastic.co/t/geo-shape-queries/151738/1 "2018-10-10T03:23:07Z")

</div>

We are trying to do a query based on finding points that lie within a circle, but it is not working  
filters.Add(fq =\> fq.GeoShapeCircle(c =\> c.Name("circle\_query").Boost(1.1).Field(p =\> p.Location).Coordinates(new GeoCoordinate(latitude, longitude)).Radius( "1000m").Relation(GeoShapeRelation.Intersects)));

However, a Distance query, such as the following works fine. Any one know why?  
filters.Add(fq =\> fq.GeoDistance(c =\> c.Name("distance\_query").Boost(1.1).Field(p =\> p.Location).Distance(1000, DistanceUnit.Meters).Location(new GeoLocation(latitude, longitude))));

Kind Regards

---

<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 7, 2018, 3:23am UTC](https://discuss.elastic.co/t/geo-shape-queries/151738/2 "2018-11-07T03:23:07Z")

</div>

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