Asmaa AlHammadi
Posts: 0
Joined: Tue May 12, 2015 12:56 pm

find nearest places

I am working on creating app that find the places that near to specific location
can someone pls provide me a tutorials or any document that shows that?

I just found this https://devcenter.appery.io/tutorials...
and it is little bit different than what I want to do

thank you

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

find nearest places

Hello Asmaa,

Unfortunately we don't have such tutorial, but this task is very much alike to this tutorial, if the objects' locations are in the db or you now there coordinates.

Asmaa AlHammadi
Posts: 0
Joined: Tue May 12, 2015 12:56 pm

find nearest places

thank you

I tried to do it, it doesnt work with me, I put the location name and location address in the database, but I think I have problem with the server code

because in step 5 on Creating services, when I have to test the server code, it shows me what appear in the "else" statement in the server code, not what is in the If

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

find nearest places

Asmaa,

It looks like that the Google response has changed. We're investigating this issue at the moment and will get back to you with the update.

Asmaa AlHammadi
Posts: 0
Joined: Tue May 12, 2015 12:56 pm

find nearest places

So there is no code that can find nearest places?

I found this

params.criteria = {
"location" : {
"$nearSphere" : [48.208, 16.373],
"$maxDistanceInMiles" : 80
}
};

Also, I sow that many apps have the same concept was created by appery
pls let me know if there is anything related to this

thank you

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

find nearest places

Hello Asmaa,

Please check that tutorial once again, it should be working now. Thus you can modify the code provided there for your needs.

Asmaa AlHammadi
Posts: 0
Joined: Tue May 12, 2015 12:56 pm

find nearest places

Yes it works :D
thanks alot

after I click on get customers within radius, can I add a button under users that appear on the list? and use the button to navigate to specific page?
like for each user, there is a specific page

I add the button, it appears for all customers and this is good, but I dont know how to specify it, for example, different page for each user

I hope u understand me

and thank so much for your help,

Asmaa,

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

find nearest places

Hello Asmaa,

This should be possible, but we do not have ready solution to share.
Please search online for details, this should be useful http://stackoverflow.com/questions/28...

Return to “Issues”