I was trying to execute a geospatial query to find the nearest documents from django using django mongo db engine:
MyModel.objects.raw_query({'location' : {'$near' : [55.55632, 25.13522], '$maxDistance' : 0.01}})
And kept getting "geo values have to be numbers" error, I couldn't find helpful resources about this problem, but when I tried to reverse the order of the dictionary it succeeded:
MyModel.objects.raw_query({'location' : {'$maxDistance' : 0.01, '$near' : [55.55632, 25.13522]}})