Shawn Johnson
Posts: 0
Joined: Wed Jan 15, 2014 4:17 pm

mongodb geospatial request

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

mongodb geospatial request

Hi Shawn -

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

RobertJay
Posts: 0
Joined: Fri Jun 15, 2012 1:32 pm

mongodb geospatial request

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.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

mongodb geospatial request

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.

RobertJay
Posts: 0
Joined: Fri Jun 15, 2012 1:32 pm

mongodb geospatial request

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

mongodb geospatial request

Hi Robert,

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

RobertJay
Posts: 0
Joined: Fri Jun 15, 2012 1:32 pm

mongodb geospatial request

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.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

mongodb geospatial request

Hi Robert,

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

mongodb geospatial request

Hi Robert,

Could you please share your application and database?

Return to “Issues”