I try to prepare my database field for geocoding with this:
MyCollection._ensureIndex({\'data.address.located\':\'2dsphere\'});
But then th
I had the same problem while my longitude, latitude order was correct. My mistake was that I had written coordiantes instead of coordinates the mongo gave me this:
pymongo.errors.WriteError: Can't extract geo keys: {data} Point must be an array or object
so maybe you have the right ordering but you have problem in your key names.