Closed arthurnn closed 10 years ago
Well this is kind of half done... You've replaced $within with $geoWithin but are still using the legacy coordinate system... To say it's fully complete we need to support the new geoJSON features, as described here:
http://docs.mongodb.org/manual/reference/operator/geoWithin/
I would do this as a completely separate feature...
So... queryable.geo_within_box
and queryable.where(:field.geo_within_box)
, etc.
good catch...:scream: working on it today..
Replacing $within with $geoWithin as in mongodb2.4 $within was deprecated. geoWithin docs: http://docs.mongodb.org/manual/reference/operator/geoWithin/ [related mongoid/moped#193]