spatial query - View with geospatial and non geospatial keys with CouchDB -
i'm using couchdb , geocouch , i'm trying understand if possible build geospatial index , "query" database both using location , value field.
data
{ "_id": "1", "profession": "medic", "location": [15.12, 30.22] } { "_id": "2", "profession": "secretary", "location": [15.12, 30.22] } { "_id": "3", "profession": "clown", "location": [27.12, 2.2] }
questions
is there way perform following queries on these documents:
- find documents
job = "medic"
near location [15.12, 30.22] (more important) - list different professions near location [15.12, 30.22] (a plus)
in case that's not possible, options have? i'm considering switching mongodb, i'd rather solve in different way.
notes
- data changes quickly, new documents might added , many might removed
references
Comments
Post a Comment