Sign In Register

How can we help you today?

Start a new topic

Ability to perform geospatial queries

Given that MongoDB is the back-end, it would be a strong feature to add 2D indexes to a type of field on a collection so that in Cloud Code, we could perform "near" or any other geospatial query. 

You're welcome! Just make sure to also check the first comment at the very bottom because there is a small error in the code which is a little tricky to find as it doesn't raise an error in the Test Harness. Good Luck!

Actually, thank you for this. This might just do this trick. i didn't realize i could just call ensureIndex and do near queries as is. i was looking through the documentation for Cloud Code and didn't find anything on that so I assumed it wasn't supported. 

Thank you!

Login to post a comment