Is the given point inside a Geo Shape?

Hey guys could someone help me a bit with this query?

I need a query that I can pass a latitude/longitude point to and it will return any of the stored GeoShapes that the point is inside.

Bonus points: I also need to check if the point is within (say) 100m of a stored point.

For context: I have documents that either have an associated GeoShape or a latitude/longitude.


geo shapes support a specific geo shape called a point, which you can use to query for documents that have this point within their shape. See

The example in the documentation contains such a query (it's just inverted)

If you need to search by distance you might need to add a special geo point and use the geo distance query though.


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