My map isn't currently accessible outside of our firewall, I'll work
on getting that changed, or put up a version on a website that anyone
can access in a bit.  I am running into a strange problem - when a
user clicks the map, I want to get the zipcode they clicked in,
however it appears that the zipcode is not always being returned -
sometimes it comes back as undefined and if that happens, everything
breaks.

Currently I am using the following to get the zipcode - and this is
what sometimes doesn't return correctly:

var place = response.Placemark[0];
var zip =
place.AddressDetails.Country.AdministrativeArea.Locality.PostalCode.PostalCodeNumber;

so if I use firebug to investigate, it will sometimes tell me that zip
is undefined after the user clicked..but othertimes it works.  I have
also tried changing it to:

var zip =
place.AddressDetails.Country.AdministrativeArea.SubAdministrativeArea.Locality.PostalCode.PostalCodeNumber;

however that has the same issues.

Has anyone else run into these problems?

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