alexbilbie/codeigniter-mongodb-library — Issue #22: Where_near seems to be broken.
Author: dkrusenstrahle
Created: 2011-10-20 13:42:27+00:00
State: open

Hello,

I am trying to use the where_near function but it does not work. I get a 500 error.
There is nothing wrong with the 2d index (I think) because it work within the mongodb console.

This is the code that I am using:

$this->mongo_db->where_near('coords', array(50,50))->get('images');

I tried this too:

$this->mongo_db->where_near('coords', array('50','50'))->get('images');

And this:

I tried this too:

$this->mongo_db->where_near(coords, array('50','50'))->get('images');