CouchDB views are one dimensional so you will not succeed with a two dimensional geo query. You could try couchdb-lucene which can. On 8 Dec 2013 15:51, "Qaqabincs" <luji...@gmail.com> wrote:
> I use a view to query an area, and emit [lng, lat] as key, so I use > "...?startkey=[min_lng, min_lat]&endkey=[max_lng, max_lat]" to help find > out all place within the quadranglar area, but the results are exactly > between x∈[min_lng, max_lng]&y∈[-∞, +∞ ] and x∈[-∞, +∞]&y∈[min_lat, > max_lat] (like a cross-shaped stripe area). > > what is the correct usage of startkey/endkey to express a quadranglar area? > > ----------------------------- > qaqabincs >