0
votes

Hey Guys i'm trying to get a Point within a specific location from my CouchDB Database. I have absolutely no Idea how to build the query and the view.

In my Document, there is a value latitude and a value longitude.

I am building a quadratic bound latMin, longMin, latMax, longMax. The view should return all documents where:

latitude is between latMin and latMax

and

longitude is between longMin and longMax

Thank you in advance

Edit: For this Project i am forced to use IrisCouch where i'm not able to install an extension. I have to solve it with key, startkey and endkey.

1

1 Answers

2
votes

You may use the extension "geocouch" which is specialized to do spatial queries.