Why won't these alerts return in Javascript Google Maps API Geocode? -
i have following function geocodes address , neither of alerts within results bit work! have exact same code on instance of geocoder on page, , works fine! clues?
function geocoderegion(addressx) { alert("geocoderegion running " + addressx); geocoder2.geocode({address: addressx, partialmatch: true }, function geocoderesult(results, status){ if (status =='ok' && results.length >0) { alert("geocode ran " + status); //return results[0].geometry.location; } else { alert("geocode not successful following reason:" + status) } }); }
Comments
Post a Comment