Hi! I got this function:
function getLatLngPoint(str,plz,stadt,land){ geocoder = new GClientGeocoder(); var newPoint; geocoder.getLatLng( str+","+plz+","+stadt+","+land, function (point) { newPoint = point; alert(newPoint); //THIS DOES WORK ! }); return newPoint; // THIS DOESNT WORK, ALWAYS RETURNS UNDEFINED } I like to use this function like: alert(getLatLngPoint('Hauptstr. 3'.'Berlin','12345','Deutschland'); but it only alerts an "undefined" although the newPoint contents the right coordinates!!! (see above: alert(newPoint) does work!) What am I doing wrong? Thanks a lot! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to Google-Maps-API@googlegroups.com To unsubscribe from this group, send email to google-maps-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---