> 1. I get statuscode 200 but get "undefined" for the address...strange.
> How is that?

Looking at your showNewAddress function ...
    function showNewAddress (response) {
    ....
    document.getElementById("statcode").value= response.Status.code;
OK so far, its processing a geocode return that it is calling
'response' ...
    ....
    document.getElementById("address").value= place.address;
What's that?  This is the first time anyones mentioned 'place' ....

    document.getElementById("acc").value=
response.AddressDetails.Accuracy;
What's that??  You can't make up names for the geocoder's returned
data.  See -
http://code.google.com/apis/maps/documentation/services.html#Geocoding_Structured

Go back to the source example -
    
http://code.google.com/intl/sv/apis/maps/documentation/examples/geocoding-reverse.html
Observe that they extract a subset of the data from the response
   place = response.Placemark[0];
and then display parts of that subset

> 2. I do not get the statuscode 200 when the marker is directly placed
> on the map. How should I attack that problem. Somehow I need to call
> the function getAddress(). Should I have a new listener and when the
> marker is placed the getAddress is called?

There won't be anything to listen for if the user isn't going to do
anything to the marker.
Why not just call getAddress(themarkerslatlng) in the bit of code that
places the marker.

chees, Ross K
--~--~---------~--~----~------------~-------~--~----~
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