Hi all,
can someone tell, why this code doesn't work.
When debugging in Firebug I can see that it steps from line 3 directly
to line 7, but I have no idea why.

Can someone please take a look at it?
Thanks and best regards,
volka






1 function suggestAddress(address) {
2               if (geocoder) {
3                       geocoder.getLocations(address, function(response){
4                               var resultArray = processResponse(response)
5                       });
6       }
7               return resultArray;
8       }


function processResponse(response) {
        var returnArray = new Array();
                if (!response) {
                alert(address + " nicht gefunden");
         } else {
                        if(response.Placemark){
                                for (var y=0; y<response.Placemark.length; y++) 
{
                                        var aPlacemark2 = 
response["Placemark"][y];
                                        
returnArray.push(aPlacemark2["address"]);
                                }
                                return returnArray;
                        }
                }
        }

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to