Page 1 of 1

Can I use geoNear or $geoNear in Appery?

Posted: Thu Oct 03, 2013 6:08 am
by Bryce

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?


Can I use geoNear or $geoNear in Appery?

Posted: Thu Oct 03, 2013 10:06 am
by Kateryna Grynko

Hi Bryce,

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


Can I use geoNear or $geoNear in Appery?

Posted: Thu Oct 03, 2013 11:54 am
by Bryce

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.


Can I use geoNear or $geoNear in Appery?

Posted: Thu Oct 03, 2013 12:29 pm
by Kateryna Grynko

Can I use geoNear or $geoNear in Appery?

Posted: Fri Oct 11, 2013 4:27 am
by Bryce

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.


Can I use geoNear or $geoNear in Appery?

Posted: Fri Oct 11, 2013 6:00 am
by Maryna Brodina

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....


Can I use geoNear or $geoNear in Appery?

Posted: Fri Oct 11, 2013 10:35 am
by Bryce

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.


Can I use geoNear or $geoNear in Appery?

Posted: Fri Oct 11, 2013 12:20 pm
by Maryna Brodina

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


Can I use geoNear or $geoNear in Appery?

Posted: Mon Oct 26, 2015 9:40 pm
by Bruce Buttles

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


Can I use geoNear or $geoNear in Appery?

Posted: Mon Oct 26, 2015 9:56 pm
by Alena Prykhodko

Bruce,

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