I am using the Google Place service to obtain the place details for a result coming out from an auto complete. The problem is that executing getPlace() request on my autocomplete object returns undefined for the variable (var place). Have been around this issue for days now, can't get on it.
My page is : here, and the example I am following is here.
error:
TypeError: place is undefined [testdebug.php:232]
main pieces of code:
window['auto_'+inputFieldID+'_autocomplete'] = new google.maps.places.Autocomplete(document.getElementById(inputFieldID));
window['auto_'+inputFieldID+'_autocomplete'].bindTo('bounds', map);
var place = window['auto_'+GoogleMapItems[LoopIndex]+'_autocomplete'].getPlace();
if (!place.geometry)
{
console.log('cannot resolve rendering.');
}
Thanks for your help.