Rather than .getLatLng() you need to use .getLocations(). SOmething like
this:

function showAddress(point) {
  geocoder.getLocations(point, function (result) {
    if (result.Status.code == G_GEO_SUCCESS) {
      // Loop through the results, looking for the one with
      // Accuracy = 1
      for (var i=0; i<result.Placemark.length; i++) {
        var accuracy = result.Placemark[i].AddressDetails.Accuracy;
        if (accuracy == 1) {
          var north = result.Placemark[i].LatLonBox.north;
          var south = result.Placemark[i].LatLonBox.south;
          var east = result.Placemark[i].LatLonBox.east;
          var west = result.Placemark[i].LatLonBox.west;
          var countrybounds = new GLatLngBounds(new GLatLng(south,west),
                new GLatLng(north,east));
        }
      }
    } else {
      alert("Error: " + result.Status.code);
    }
  });
}

If you also need the name of the country it's in
  result.Placemark[i].AddressDetails.Country.CountryName


-- 
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team


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