Page 1 of 1

Save Google Places NearbySearch results to a Collection

Posted: Fri Jan 30, 2015 4:36 am
by Poll David

Following this thread,

https://getsatisfaction.com/apperyio/...

I want to create a function for the Clicked marker that says VISIT. Then whenever a user clicks on the VISIT, the number of visit for that establishment will be up by 1. Same goes for other user of the app because I have login so i have multiple users.

Then the MAP MARKER for the establishment will change based on the number of visits.

Image

So I am thinking of creating a new COLLECTION where all the VISITed establishments will be stored there with the number of visits. Then on the NearbySearch query, the Search function will also search on the collection. is this possible?

Does anyone have any idea if this is possible?


Save Google Places NearbySearch results to a Collection

Posted: Sat Jan 31, 2015 5:53 pm
by Alena Prykhodko

Hello,

Sorry for late reply.
Appery.io supports jQuery Mobile, HTML5, JavaScript, CSS and PhoneGap (if exporting as hybrid or using native device features), so if this can be created by means of these technologies this defenitely can be done with our platform.
Also you can use any REST APIs.


Save Google Places NearbySearch results to a Collection

Posted: Sat Jan 31, 2015 5:58 pm
by Poll David

Hi thanks for the reply, I am still thinking on how to actually do this, but can I have an unrelated question?

I have a DatePicker component, and I want to get the value using javascript..

I am doing

codevar startdate = Apperyio('start_date').val();
var enddate = Apperyio('end_date').text();

alert(startdate);
alert(enddate);/code where start_date and end_date are datepicker names.

but no value is showing up..


Save Google Places NearbySearch results to a Collection

Posted: Sat Jan 31, 2015 6:10 pm
by M&M

You can try this for start date

code
$("[name='start_date']").find('input').attr('id','startdate');
var st_date = $("#startdate").val();
alert(st_date);
/code


Save Google Places NearbySearch results to a Collection

Posted: Sat Jan 31, 2015 6:15 pm
by Poll David

Thanks M&M! You are the best!