Has anyone used geospatial searching with mongengine? I can’t seem to get it to work!
What is the format of the data that has to go in the GeoPointField?
How should i format it?
I can’t find anything about the formating in the documentation!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Can you post what you are trying to do??
Point data must be stored in a field with key
"loc":{"lon":51.10682735591432, "lat":-114.11773681640625}or
loc: [22.23432, 21.23212]With mongoengine there is support for a geopoint field
something like above should work.
http://mongoengine-odm.readthedocs.org/en/latest/apireference.html#mongoengine.GeoPointField