From: Andrew Brown <uscfan1...@gmail.com>
Date: Fri, 8 Apr 2011 21:49:39 -0700 (PDT)
Local: Sat, Apr 9 2011 12:49 am
Subject: JSON Serialization and Near Query Distance Maximum Distance Limit
I apologize if this is a duplicate post. I tried to email this group
earlier today, but I think it failed because I wasn't a member yet. Anyway, I have to questions about mongoengine. First, I'm using
Second, does mongoengine support specifying a maximum distance for
Place.objects(location__near=[lat, lng]).limit(20)
but I only want results within 1 degree of the specified location,
If that's not built in to mongoengine I'll just use the __raw__
Thanks,
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.
| ||||||||||||||