The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From: NickW <nickw...@gmail.com>
Date: Thu, 5 Apr 2012 08:05:48 -0700 (PDT)
Local: Thurs, Apr 5 2012 11:05 am
Subject: Help using near with maxDistance in a model. Mongo::OperationFailure: geo values have to be numbers:
I'm trying to add a model method to abstract radius searches within a
>> Site.nearest([-122.0,44.0],200)
class Site
>Mongo::OperationFailure: geo values have to be numbers: {$maxDistance: 200, $near: [ -122.0, 44.0 ] } include MongoMapper::Document key :id, Integer
def self.nearest(center_point, range)
end
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||