Thank you Mike.

How do I access that data? By analogy to the Lat-Long data, I tried:

        $sXML->Response->Placemark->Locality->PostalCode->PostalCodeNumber;

but that is not yields an error.

Also, where is the full structure of the placemark object documented?

Thanks for your help.

Marshall




-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Mike Williams
Sent: Sunday, October 18, 2009 02:03
To: [email protected]
Subject: Re: How to get zip code from an address


If your location has a unique zip code, it will be returned in the 
Locality.PostalCode.PostalCodeNumber field of the Placemark.

Some locations have more than one zip code. That typically happens for 
roads that pass through more than one zip code and the Google database 
doesn't have the exact location for the particular property that you 
requested.

-- 
Mike Williams
http://econym.org.uk/gmap







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