Page 1 of 2

mongodb geospatial request

Posted: Mon Apr 14, 2014 8:32 pm
by Shawn Johnson

Hello,

I am curious to know when or if you will support mongodb geospatial request
I would like to be able to use the appery backend to do simple sorting by current location.

if this is not an option at this time, can you provide a working solution for task.

Thanks
-Shawn.J


mongodb geospatial request

Posted: Mon Apr 14, 2014 9:21 pm
by Illya Stepanov

Hi Shawn -

We have information about it in our Docs here:
:: http://docs.appery.io/documentation/b...


mongodb geospatial request

Posted: Sat Jul 05, 2014 12:39 am
by RobertJay

Illya - you may be a lifesaver! I'm using mongodb and having some trouble getting geospacial queries to work. I'm using appery's plug-in, but I didn't realize you actually use mongodb internally. So my question is: as far as you know, is this ...

http://docs.appery.io/documentation/b...

... still relevant to appery. In other words, if mongodb is hosting my data (not appery), do these docs still apply? Thanks.


mongodb geospatial request

Posted: Sun Jul 06, 2014 12:44 am
by Illya Stepanov

Hi Robert - this queries should work as described in our documentation. What problems do you have with implementing this queries in your app? And what plugin you're using?

Under The hood it's MongoDB instance that we are hosting with visual interface for your apps in your Appery.io account.


mongodb geospatial request

Posted: Mon Jul 07, 2014 1:39 pm
by RobertJay

Thanks Illya. My problem is that I cannot seem to retrieve docs with a location within some radius of another location. I'm using the regular mongoDB plugin. Someone at MongoDB support is working on this with me, so please don't spend any time doing anything now. If mongoDB cannot help, I will request help from you. If I do get a solution from mongoDB I will post it here. Thanks again.


mongodb geospatial request

Posted: Mon Jul 07, 2014 1:57 pm
by Kateryna Grynko

Hi Robert,

Thank you for the update! We appreciate it! Let us know if you need any help.


mongodb geospatial request

Posted: Mon Jul 07, 2014 8:53 pm
by RobertJay

Sorry, but I do need help. I'm trying to retrieve all docs within a mile of a specified location - and I get back way too many docs and that are not within the specified distance. I really appreciate the help. Thanks.

My mongoDB field is http://screencast.com/t/6bsXOlJVJu. It is indexed.

The aperio docs I'm trying to use are at http://devcenter.appery.io/documentat.... The relevant piece is http://screencast.com/t/039RNPhTO

My mapping is http://screencast.com/t/v32VaRU9. The js code simply alerts me as to what is being sent to the parameter.

I set the local storage variable with this code http://screencast.com/t/ogBXuepfXT which produces the following being sent to the where parameter: http://screencast.com/t/2NmodWhI.


mongodb geospatial request

Posted: Mon Jul 07, 2014 9:53 pm
by Illya Stepanov

Hi Robert,

Could you please check in the browser console what actually service returns?
If it's possible please show us this screenshots.


mongodb geospatial request

Posted: Mon Jul 07, 2014 10:39 pm
by RobertJay

mongodb geospatial request

Posted: Tue Jul 08, 2014 11:16 am
by Kateryna Grynko

Hi Robert,

Could you please share your application and database?