Page 6 of 6

Help with Google Places Map and result

Posted: Tue Feb 03, 2015 3:07 pm
by Poll David

Thanks for the response Murali.

The logic / process seems to be easy to understand but I am not that proficient in programming so all the process you guys are saying may not be done with my skills.

I really need to have some sample codes on how to actually do it.

[quote:]When the user clicks the visit link, then fetch the data into an array. Then when you are loading the search result use that data for lookup and change the "icon" property of the marker accordingly. [/quote]

  1. How do i fetch the data into an array?

  2. When loading the search result, how can i lookup?

    I need an actual example on how to do it. I really need help on this :(


Help with Google Places Map and result

Posted: Tue Feb 03, 2015 6:33 pm
by Poll David

I am having difficulties on the Visit thing..

I was able to create a collection and successfully add place_id of the clicked marker. I made place_id as unique so that the same establishment result will not be created again or duplicated. So does this mean that i should use UPDATE DATABASE SERVICE for adding Visits?

The thing is about the visit, I cannot add 1 everytime the Visit of the marker is clicked..

Image

What i need is if it's the first time the establishment is visited, it will be added into the collection.. If it is not the first time, the establishment's visit will just increment by 1. (NOTE: only 1 visit per user so if the user visited the establishment once, and visited it again, the second and recurring visit will not be added.)

Another problem is the query of places into the collection

PLEASE HELP. Thanks


Help with Google Places Map and result

Posted: Wed Feb 04, 2015 2:48 pm
by Alena Prykhodko

Hello,

Here is a tutorial how to work with mapping service response to the page and localstorage variable
http://blog.bismallion.com/collection...

[quote:]How do I fetch the data into an array?[/quote]
http://blog.bismallion.com/map-appery...


Help with Google Places Map and result

Posted: Wed Feb 04, 2015 10:02 pm
by Poll David

"When the user clicks the visit link, then fetch the data into an array. Then when you are loading the search result use that data for lookup and change the "icon" property of the marker accordingly. "

-Which data are you talking about? The data of the marker? or the data on the collection?

-When loading the search result, how can I lookup on that data?


Help with Google Places Map and result

Posted: Thu Feb 05, 2015 4:07 pm
by Ihor Didevych

Hello,

I cannot add 1 everytime the Visit of the marker is clicked..

1) what happens when user clicks the marker ?
2) how do you calling your service ?
3) Do you see your request in the network tab of console when you trying to call your service ?