I am getting the address in an alert box, but unable to print it using
the document.write() statement. I am trying to create a GPS website, I
do not have a link to that website as it is under construction.


Please check the following javascript code I am using:
> ---------------------------------------------------------------------------­
> function reGeoCoding()
>    {
>    var address=new GLatLng(latArray[i].text,lngArray[i].text);  // lat
> and long values from an array
>    geocoder = new GClientGeocoder();
>    geocoder.getLocations(address,getAddress);   // getAddress is a
> callback function
>    function getAddress(response)
>       {
>       place = response.Placemark[0];
>       p=place.address;
>       alert(p); // I am getting addresses in this alert box,but unable
> to print it using document.write(p);
>       }
>    }
> ---------------------------------------------------------------------------­------------------------------------------->
>  I am calling the the reGeoCoding(); function as follows:
> ---------------------------------------------------------------------------­---------------------------------------------------------------------------­-------------------------------------
> <td width="40%" height="100%"><script>reGeoCoding();</script></td>
> ---------------------------------------------------------------------------­-------------------------------------------
> Any kind of help is appreciated and thanks in advance.
> VJSH_PV

-- 
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