incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From St├ęphane Mourey <>
Subject get item by longitude and latitude inside a square
Date Mon, 15 Mar 2010 16:14:36 GMT
Hi all,

I have a database where cities (villes in french) are stored, with longitude
and latitude values. I'm trying to get some of them, inside a square.
Here is one request:


Here is the view code:

   "getVillesByLatAndLong": {
       "map": "function(doc) {if (doc.type=='ville')
{emit([,doc.long], doc);};}"
The result is empty, but I know I have some cities that match. Could anyone
tell what's wrong?

Best regards,

Stephane Mourey

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