Bryce
Posts: 0
Joined: Thu Oct 03, 2013 6:08 am

Can I use geoNear or $geoNear in Appery?

I have used $nearSphere and $maxDistanceInKilometers to return objects that located within a specified distance from the user (ie. using a Long/Lat geopoint).

However, I need to display how far each of these objects are from the user. I would prefer this to be calculated in the back-end and simply returned in the json response.

I have read that the mongoDB functions "geoNear" and/or "$geoNear" also return the distance, however I have not been able to find anywhere that explains how to use these in Appery.io application.

Can you help please?

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

Can I use geoNear or $geoNear in Appery?

Hi Bryce,

Appery.io provides a shell to work with MongoDB, so you can use all the MongoDB functions in Appery.io.

Bryce
Posts: 0
Joined: Thu Oct 03, 2013 6:08 am

Can I use geoNear or $geoNear in Appery?

Thanks for the quick response.

However I really need some more details than this. How do I use this shell? Which screen do I use? Is there some documentation (detailed documentation) about how to use the shell?

Without any of this extra detail the response you gave above is virtually useless to me... Sorry.

Bryce
Posts: 0
Joined: Thu Oct 03, 2013 6:08 am

Can I use geoNear or $geoNear in Appery?

Hi Katya,

I need more information please.

How does Appery.io provide a shell to work with MongoDB? None of the links you provide above explain this as far as I can see.

Can I use the $geoNear function on an Appery.io hosed database? If so, how do I do this (is there documentation or tutorial specifically explaining this?)

Or, if I want to use $geoNear, do I need to connect to an external MongoDB (like Mongolab for example), and then connect to this via REST?

My preference would be to only use the Appery.io hosed database, so can you please explain how I can do this (in detail).

Thanks,

Bryce.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Can I use geoNear or $geoNear in Appery?

Hello! All requests API supports described here http://docs.appery.io/documentation/b.... As you can see API also supports some Geospatial requests http://docs.appery.io/documentation/b.... You can use requests for DB from server code http://docs.appery.io/documentation/b... where you can set up the following requests http://docs.mongodb.org/manual/refere....

Bryce
Posts: 0
Joined: Thu Oct 03, 2013 6:08 am

Can I use geoNear or $geoNear in Appery?

Hi Maryna,

I am really impressed with how quickly you respond at Exadel, however unfortunately I am not getting a proper answer to my question.

I just need a simple answer: can I use the query $geoNear on geospacial objects stored in the Appery.io backend services database, or not?

I know that I can use this query on an external 3rd party MongoDB and connect my Appery.io app to it via a REST API, however what I really want to know is whether there is any way I can use $geoNear diretly on my Appery.io backend service without having to use another datasource?

I also know that Appery.io provides some other geospacial query funcitons, like $nearSphere, however I'm not asking about this either.

What I AM ASKING ABOUT IS $geoNear.

Please can someone give me a simple, straight and conclusive answer.

Thanks,

Bryce.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Can I use geoNear or $geoNear in Appery?

Specifically $geoNear can't be used in Appery.io DB.

Bruce Buttles
Posts: 0
Joined: Tue Oct 20, 2015 7:44 pm

Can I use geoNear or $geoNear in Appery?

It looks like the links to these Geospatial query examples is gone. Can you point me to good examples of geospatial queries?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Can I use geoNear or $geoNear in Appery?

Bruce,

Let's continue in one thread, here https://getsatisfaction.com/apperyio/...

Return to “Issues”