Page 1 of 1

searchig near places from database with geolocation

Posted: Mon Oct 06, 2014 6:45 am
by Pablo Zamora

Hi, i hope you can help me, i have a collection with many columns, one of them is the address, i would like users to send their location so they can see a list of items near to them, i know how to get lat and lng but i don't know how to compare theese ones with the address stored in DB to display the near items in a mobilelist. I have already watched theese tutorials but i can't figure it out. Thanks in advanced.

http://devcenter.appery.io/tutorials/...

http://devcenter.appery.io/tutorials/...

http://devcenter.appery.io/tutorials/...


searchig near places from database with geolocation

Posted: Mon Oct 06, 2014 8:13 am
by Evgene Karachevtsev

Hello Pablo,

If you have the coordinates of the user and you want to retrieve the objects nearest to the user from the database, in the database, you need to store the coordinates of the object (column type geopoint). <ore information about queries, please see here http://devcenter.appery.io/documentat...