Can anyone advise on this.
I’ve got large number of documents with geo locations specified as polygons - lets call them boxes.
When my mobile device sends in its position via lat / long I want to pull back all documents where the Lat / Long is inside any of the specified boxes.
The only options I can see to do this in Couchbase are:
- Provide a Point and a Radius and if any of the points of my boxes intersect the point + radius it returns
- Provide a Polygon and if any of the points of my boxes intersect on the points, it returns.
Am I missing a trick here? this seems like a simple task that I’m trying to perform.
I have documents which contains boxes around city centers
When my device is inside a city center I want to return the document of the city center.
If I’m on the outside of a boxed area, even if I’m near the corner of one, I don’t want it to return. so I can’t use a radius.
Thanks in advance.