I must be missing something, but I can't get the above function to return the result?Code:var geocoder = new google.maps.Geocoder(); function GetLatLngFromZip(zip) { return geocoder.geocode({ 'address': zip }, function (results, status) { if (status == google.maps.GeocoderStatus.OK) { console.log(results[0].geometry.location); return results[0].geometry.location } }); };



Reply With Quote



Bookmarks