Poll David
Posts: 0
Joined: Sat Jan 24, 2015 5:22 am

Help with Google Places Map and result

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 :(

Poll David
Posts: 0
Joined: Sat Jan 24, 2015 5:22 am

Help with Google Places Map and result

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

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

Help with Google Places Map and result

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

Poll David
Posts: 0
Joined: Sat Jan 24, 2015 5:22 am

Help with Google Places Map and result

"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?

Ihor Didevych
Posts: 0
Joined: Wed Nov 19, 2014 7:55 pm

Help with Google Places Map and result

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 ?

Return to “Issues”