geocoder.getLatLng() is asynchronous. It doesn't return anything because it doesn't have the answer by the time it returns. The reply from the server arrives some time later, and is passed to the callback function.
If you have any code that needs the result, then you have to call that piece of code from inside the callback function. -- Mike Williams http://econym.org.uk/gmap --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
