i assigned place id here "placeid = results[0].place_id" but it dosen't. it returns me undefined. assignment operation fails there.
function match_up_dn(address)
{
    geocoder = new google.maps.Geocoder();
    var placeid;
    if (geocoder) 
    {
        geocoder.geocode({
            'address': address
        }, function (results, status) {
            if (status == google.maps.GeocoderStatus.OK) {
               console.log("al:-"+results[0].place_id);
                placeid = results[0].place_id;
            }
            else
            {
                alert("undefined address");
            }
        });
    }
    return placeid;
}
 
    