kuzzleio / boost-geospatial-index

A NodeJS bridge to the C++ boost::geometry library, allowing to index and query geospatial shapes
Apache License 2.0
15 stars 7 forks source link

Please add #queryCircle(lat, lon, radius) #14

Closed revington closed 11 months ago

revington commented 1 year ago

The idea is that given a set of points,shapes,... you could search for "what is inside the circle".

Aschen commented 1 year ago

You can already do that with the geoDistance clause https://docs.kuzzle.io/core/2/api/koncorde-filters-syntax/clauses/#geodistance

Is it what you were thinking about?

revington commented 1 year ago

He @Aschen, That is what I'm looking for but I don't know how to achieve that with this library. I'm using this library on a proyect not related to Kuzzle and this library just exposes #queryPoint(lat, lon) and #queryIntersects(points)

Aschen commented 1 year ago

Oh yes you are right!

I'm pretty you can do it because Koncorde is doing it, have a look: