geocoder.geocode({ 'address': address },
function (results, status) {
if (status == google.maps.GeocoderStatus.OK) {
return 1;
}
else {
//alert("Unfortunately we couldn't understand your request and therefore cannot find your nearest branch.");
return false;
}
});
How do I get the return status of function(results, status) for use outside the function? I suppose this is a case where a function is being used as an argument to another function. I need to get the return value of the argument function as the return value of geocoder.geocode()