> But the problem i am facing is for fetching place name from LatLng.
> Every time its not giving me the updated location.

Reverse geocoding is aynschronous.  It takes time for the results to
come back.
Your code -
     gc1.getLocations(oGLatLngFrom , GetStringAddress1);
      fromAddress  = strAddress1;
How it actually executes -
   getLocations fires off the reverse geocoding request to Google.
   Your code sets fromAddress with an old value.
   Some time later, the results come back from Google.
   Your GetStringAddress1 callback function is triggered, processes
the result and populates fromAddress.

If you want to use the results from an asynchronous operation, you
must use them in the callback function.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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