I try to prepare my database field for geocoding with this:
MyCollection._ensureIndex({'data.address.located':'2dsphere'});
But then this error comes:
MongoError: Can't extract geo keys from object, malformed geometry?:
{ type: "Point", coordinates: [ 32.4586858, -110.8571443 ] }
I can not see whats wrong with this field ? Any idea ?
When I take a look to this it shows up this:
The following example stores a GeoJSON Point:
{ loc: { type: "Point", coordinates: [ 40, 5 ] } }