couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Qaqabincs <luji...@gmail.com>
Subject use startkey/endkey to discribe a range problem
Date Sun, 08 Dec 2013 15:50:54 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message