# Geo\_shape query: LineString: Intersects

**URL:** <https://discuss.elastic.co/t/geo-shape-query-linestring-intersects/135415>\
**Category:** Elasticsearch\
**Created:** [June 11, 2018, 6:15pm UTC](https://discuss.elastic.co/t/geo-shape-query-linestring-intersects/135415 "2018-06-11T18:15:13Z")\
**Posts on this page:** 2\
**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:** [June 11, 2018, 6:15pm UTC](https://discuss.elastic.co/t/geo-shape-query-linestring-intersects/135415/1 "2018-06-11T18:15:14Z")

</div>

I need to check if my linestring or part of my linestring falls within or intersects my circle with a given radius.

**Mapping:** Its a lineString type with two coordinates (start and end). Say a long road,

> ```
> "geometry": {
> "type": "geo_shape",
> "tree": "quadtree"
> }
> 
> ```

I have a lat,lon and a radius.

**Query:** I need to check whether this lineString lies within or intersects my circle.  
**Further Query** : I have many such lineStrings and need to get it sorted from the nearest line.

Can anyone please help me here ?

---

<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 9, 2018, 6:15pm UTC](https://discuss.elastic.co/t/geo-shape-query-linestring-intersects/135415/2 "2018-07-09T18:15:19Z")

</div>

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